Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Commit

Permalink
Fix header and test import
Browse files Browse the repository at this point in the history
  • Loading branch information
ascandella committed May 11, 2017
1 parent 78ecf7b commit 27fbbf2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions internal/gps/_testdata/src/dotgodir/foo.go/foo.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package foo

import "sort"

var _ = sort.Strings

// yes, this is dumb, don't use ".go" in your directory names
// See https://github.com/golang/dep/issues/550 for more information
2 changes: 1 addition & 1 deletion internal/gps/pkgtree/pkgtree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1296,7 +1296,7 @@ func TestListPackages(t *testing.T) {
P: Package{
ImportPath: "dotgodir/foo.go",
Name: "foo",
Imports: []string{},
Imports: []string{"sort"},
},
},
},
Expand Down

0 comments on commit 27fbbf2

Please sign in to comment.