MCPcopy
hub / github.com/tailscale/tailscale / hasIgnoreBuildTag

Function hasIgnoreBuildTag

pkgdoc_test.go:17–26  ·  view source on GitHub ↗
(f *ast.File)

Source from the content-addressed store, hash-verified

15)
16
17func hasIgnoreBuildTag(f *ast.File) bool {
18 for _, cg := range f.Comments {
19 for _, c := range cg.List {
20 if c.Text == "//go:build ignore" {
21 return true
22 }
23 }
24 }
25 return false
26}
27
28func TestPackageDocs(t *testing.T) {
29 switch runtime.GOOS {

Callers 1

TestPackageDocsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…