gleedoc/generate

Types

Configuration for test generation.

pub type Config {
  Config(output_dir: String)
}

Constructors

  • Config(output_dir: String)

    Arguments

    output_dir

    Directory to write generated tests to, typically “test”

Values

pub fn clean_generated(
  output_dir: String,
) -> Result(Nil, snag.Snag)

Clean up generated test files.

pub fn generate_tests(
  blocks: List(parse.CodeBlock),
  config: Config,
) -> Result(List(String), snag.Snag)

Generate test files from extracted code blocks.

Search Document