Skip to content

Commit

Permalink
Update testscript/doc.go
Browse files Browse the repository at this point in the history
Co-authored-by: Roger Peppe <rogpeppe@gmail.com>
  • Loading branch information
twpayne and rogpeppe committed Jan 12, 2022
1 parent 157e235 commit 37b7340
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion testscript/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,13 @@ should only run when the condition is satisfied. The predefined conditions are:
- [symlink] for whether the OS has symbolic link support
- [exec:prog] for whether prog is available for execution (found by exec.LookPath)
- [build:tag] for whether the release build tag is set; user-defined build tags
are not currently supported
are not currently supported. Note that the "build:" prefix
distinguishes this set of conditions from the conditions recognized
by the gotooltest package - that package has no "build:" prefix and
guards based on whether the go tool supports a given tag, but the
"build:" tag guards based on whether the binary that's imported the
testscript package supports the tag.
A condition can be negated: [!short] means to run the rest of the line
when testing.Short() is false.
Expand Down

0 comments on commit 37b7340

Please sign in to comment.