stress

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package stress writes long markdown documents of several shapes, to see how mdsh-gui copes with them: the benchmarks in the notebook package parse and lay them out, and cmd/mdsh-gui/internal/stress/gui.cjs types into them in the real frontend. Command stressdoc writes one to a file.

Index

Constants

This section is empty.

Variables

View Source
var Shapes = []string{"runbook", "prose", "output", "inputs", "flat"}

Shapes are the kinds of document Write makes:

  • runbook: sections of sh blocks, each with saved output, a list and some prose, and every third block depends on the one before. The common case.
  • prose: mostly paragraphs, lists, tables, quotes and fenced code that doesn't run, with a block now and then.
  • output: few blocks, each with a long saved output.
  • inputs: textboxes and choices bound with var=, and blocks that use them and depend on each other in long chains.
  • flat: blocks without ids and prose, with no headings at all, so nothing folds, no section ends and mdsh names each block by its line.

Functions

func Write

func Write(shape string, lines int) []byte

Write returns a document of shape about lines long: it stops at the first whole part that reaches lines. It panics on an unknown shape.

Types

This section is empty.

Directories

Path Synopsis
Command stressdoc writes a long markdown document of one shape, for trying mdsh-gui on it:
Command stressdoc writes a long markdown document of one shape, for trying mdsh-gui on it:

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL