@@ -30,16 +30,16 @@ func TestSplitAbsoluteProjectRoot(t *testing.T) {
3030
3131 tg .tempDir ("src" )
3232 tg .setenv ("GOPATH" , tg .path ("." ))
33- hoardCtx := & ctx {GOPATH : tg .path ("." )}
33+ nestCtx := & ctx {GOPATH : tg .path ("." )}
3434
3535 importPaths := []string {
3636 "github.com/pkg/errors" ,
3737 "my/silly/thing" ,
3838 }
3939
4040 for _ , ip := range importPaths {
41- fullpath := filepath .Join (hoardCtx .GOPATH , "src" , ip )
42- pr , err := hoardCtx .splitAbsoluteProjectRoot (fullpath )
41+ fullpath := filepath .Join (nestCtx .GOPATH , "src" , ip )
42+ pr , err := nestCtx .splitAbsoluteProjectRoot (fullpath )
4343 if err != nil {
4444 t .Fatal (err )
4545 }
@@ -49,7 +49,7 @@ func TestSplitAbsoluteProjectRoot(t *testing.T) {
4949 }
5050
5151 // test where it should return error
52- pr , err := hoardCtx .splitAbsoluteProjectRoot ("tra/la/la/la" )
52+ pr , err := nestCtx .splitAbsoluteProjectRoot ("tra/la/la/la" )
5353 if err == nil {
5454 t .Fatalf ("should have gotten error but did not for tra/la/la/la: %s" , pr )
5555 }
@@ -61,7 +61,7 @@ func TestAbsoluteProjectRoot(t *testing.T) {
6161
6262 tg .tempDir ("src" )
6363 tg .setenv ("GOPATH" , tg .path ("." ))
64- hoardCtx := & ctx {GOPATH : tg .path ("." )}
64+ nestCtx := & ctx {GOPATH : tg .path ("." )}
6565
6666 importPaths := map [string ]bool {
6767 "github.com/pkg/errors" : true ,
@@ -75,7 +75,7 @@ func TestAbsoluteProjectRoot(t *testing.T) {
7575 }
7676
7777 for i , ok := range importPaths {
78- pr , err := hoardCtx .absoluteProjectRoot (i )
78+ pr , err := nestCtx .absoluteProjectRoot (i )
7979 if ok {
8080 tg .must (err )
8181 expected := tg .path (filepath .Join ("src" , i ))
@@ -92,7 +92,7 @@ func TestAbsoluteProjectRoot(t *testing.T) {
9292
9393 // test that a file fails
9494 tg .tempFile ("src/thing/thing.go" , "hello world" )
95- _ , err := hoardCtx .absoluteProjectRoot ("thing/thing.go" )
95+ _ , err := nestCtx .absoluteProjectRoot ("thing/thing.go" )
9696 if err == nil {
9797 t .Fatal ("error should not be nil for a file found" )
9898 }
@@ -107,7 +107,7 @@ func TestVersionInWorkspace(t *testing.T) {
107107
108108 tg .tempDir ("src" )
109109 tg .setenv ("GOPATH" , tg .path ("." ))
110- hoardCtx := & ctx {GOPATH : tg .path ("." )}
110+ nestCtx := & ctx {GOPATH : tg .path ("." )}
111111
112112 importPaths := map [string ]struct {
113113 rev gps.Version
@@ -134,7 +134,7 @@ func TestVersionInWorkspace(t *testing.T) {
134134 tg .runGit (repoDir , "checkout" , info .rev .String ())
135135 }
136136
137- v , err := hoardCtx .versionInWorkspace (gps .ProjectRoot (ip ))
137+ v , err := nestCtx .versionInWorkspace (gps .ProjectRoot (ip ))
138138 tg .must (err )
139139
140140 if v != info .rev {
0 commit comments