golang.org/x/exp@v0.0.0-20240506185415-9bf2ced13842/ebnflint/ebnflint_test.go (about) 1 // Copyright 2012 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 main 6 7 import ( 8 "os" 9 "runtime" 10 "testing" 11 ) 12 13 func TestSpec(t *testing.T) { 14 if err := verify(runtime.GOROOT()+"/doc/go_spec.html", "SourceFile", nil); err != nil { 15 if os.IsNotExist(err) { 16 // Couldn't find/open the file - skip test rather than 17 // complain since not all builders copy the spec. 18 t.Skip("spec file not found") 19 } 20 t.Fatal(err) 21 } 22 }