doc

package
v0.104.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package doc contains helper functions to run doc examples as testscript scripts to keep the docs up to date with the code at the head of the repository.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunOneScript

func RunOneScript(t *testing.T, dir string, file string)

func SortedTestScripts

func SortedTestScripts(t *testing.T, dir string) (files []string)

SortedTestScripts returns test scripts in sorted order for sequential execution. Scripts are executed in parallel by default with testscript, which is a problem for the docs that build on previous examples.

func TestMain

func TestMain(m *testing.M)

Types

This section is empty.

Jump to

Keyboard shortcuts

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