
The tool just runs 'go vet' for now; could do more later (like actually run the examples and compare to some expected output)
11 lines
339 B
Bash
Executable File
11 lines
339 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Sanity testing of the examples.
|
|
|
|
set -eo pipefail
|
|
|
|
# go vet will attempt to build each example, making sure it compiles. It will
|
|
# also report known issues with the code. Disabling the -unreachable check
|
|
# because it will fire false positives for some examples demonstrating panics.
|
|
go vet -unreachable=false ./examples/...
|