github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/cmd/gno/testdata/gno_test/lint_file_error_txtar (about) 1 # gno lint: test file error 2 3 ! gno lint ./i_have_error_test.gno 4 5 cmp stdout stdout.golden 6 cmp stderr stderr.golden 7 8 -- i_have_error_test.gno -- 9 package main 10 11 import "fmt" 12 13 func TestIHaveSomeError() { 14 i := undefined_variable 15 fmt.Println("Hello", 42) 16 } 17 18 -- stdout.golden -- 19 -- stderr.golden -- 20 i_have_error_test.gno:6: name undefined_variable not declared (code=2).