kythe.io@v0.0.68-0.20240422202219-7225dbc01741/kythe/go/indexer/testdata/basic/stdliboverride.go (about) 1 // Package stdliboverride tests that corpus labels are assigned correctly when 2 // the --override_stdlib_corpus and --use_compilation_corpus_for_all flags 3 // are enabled. 4 package stdliboverride 5 6 import ( 7 //- @"\"bytes\"" ref/imports BYTES=vname("package","STDLIB_OVERRIDE",_,"bytes","go") 8 "bytes" 9 ) 10 11 // - @myFunc=vname(_,"kythe",_,_,"go") defines/binding _MY_FUNC 12 func myFunc() { 13 //- @bytes ref BYTES 14 //- @NewBuffer ref vname(_,"STDLIB_OVERRIDE",_,_,"go") 15 bytes.NewBuffer(nil) 16 }