Debian Codegraph @

src/cmd/internal/script/scripttest/doc.go

raw
1 // Copyright 2022 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 // Package scripttest adapts the script engine for use in tests.
6 package scripttest
7
8 // This package provides APIs for executing "script" tests; this
9 // way of writing Go tests originated with the Go command, and has
10 // since been generalized to work with other commands, such as the
11 // compiler, linker, and other tools.
12 //
13 // The top level entry point for this package is "Test", which
14 // accepts a previously configured script engine and pattern (typically
15 // by convention this will be "testdata/script/*.txt")
16 // then kicks off the engine on each file that matches the
17 // pattern.