github.com/jmigpin/editor@v1.6.0/core/godebug/testdata/gomod05_test.txt (about)

     1  cd main
     2  ucmd godebugtester test main_test.go
     3  #ucmd godebugtester test -verbose main_test.go
     4  fail contains stdout "\"F1\"\n"
     5  contains stdout "\"F2\"\n"
     6  
     7  -- main/go.mod --
     8  module example.com/main
     9  require example.com/pkg1 v0.0.0
    10  require example.com/pkg2 v0.0.0
    11  replace example.com/pkg1 => ../pkg1
    12  replace example.com/pkg2 => ../pkg2
    13  -- main/main_test.go --
    14  package main
    15  import "testing"
    16  import "example.com/pkg1"
    17  import "example.com/pkg2"
    18  func Test01(t*testing.T) {
    19  	_=pkg1.F1()
    20  	_=pkg2.F2()
    21  }
    22  -- pkg1/go.mod --
    23  module example.com/pkg1
    24  -- pkg1/f1.go --
    25  package pkg1
    26  func F1() string {
    27  	return "F1"
    28  }
    29  -- pkg2/go.mod --
    30  module example.com/pkg2
    31  -- pkg2/f2.go --
    32  package pkg2
    33  func F2() string {
    34  	//godebug:annotateblock
    35  	return "F2"
    36  }