
After go1.16, go will use module mode by default, even when the repository is checked out under GOPATH or in a one-off directory. Add go.mod, go.sum to keep this repo buildable without opting out of the module mode. > go mod init github.com/mmcgrana/gobyexample > go mod tidy > go mod vendor In module mode, the 'vendor' directory is special and its contents will be actively maintained by the go command. pygments aren't the dependency the go will know about, so it will delete the contents from vendor directory. Move it to `third_party` directory now. And, vendor the blackfriday package. Note: the tutorial contents are not affected by the change in go1.16 because all the examples in this tutorial ask users to run the go command with the explicit list of files to be compiled (e.g. `go run hello-world.go` or `go build command-line-arguments.go`). When the source list is provided, the go command does not have to compute the build list and whether it's running in GOPATH mode or module mode becomes irrelevant.
38 lines
1.2 KiB
Plaintext
38 lines
1.2 KiB
Plaintext
TAP version 13
|
|
1..42
|
|
1..13 A plan only supports directives so this text is wrong.
|
|
ok 1 A normal test line includes a number.
|
|
ok But a test line may also omit a number.
|
|
|
|
A random line that does not look like a test or diagnostic should be ignored.
|
|
No matter how it is spaced out.
|
|
|
|
Or if it is a totally blank line.
|
|
|
|
not ok 3 This is a failing test line.
|
|
|
|
# Diagnostics are any lines...
|
|
# ... beginning with a hash character.
|
|
|
|
not ok 4 There are a couple of directives. # TODO is one of those directives.
|
|
not ok 5 # TODO: is invalid because the directive must be followed by a space.
|
|
ok 6 - Another directive line # toDO is not case sensitive.
|
|
|
|
ok 7 A line that is a # SKIP
|
|
ok 8 Tests can be # skipped as long as the directive has the "skip" stem.
|
|
ok 9 The TODO directive must be followed by a space, but # skip: is valid.
|
|
1..0 # Skipped directives can show on a plan line too.
|
|
|
|
Bail out! is a special phrase emitted when a TAP file aborted.
|
|
|
|
not ok 10 Having TAP version 13 in the middle of a line is not a TAP version.
|
|
not ok 11 Having Bail out! in the middle of a line is not a bail out.
|
|
|
|
ok 12 Here is an empty directive. #
|
|
|
|
# The most basic valid test lines.
|
|
ok
|
|
not ok
|
|
|
|
ok 15 Only the test number should look different. Not another 42, for example.
|