Skip to content

Commit

Permalink
fixup! fixup! Add license header.
Browse files Browse the repository at this point in the history
  • Loading branch information
yegle committed Nov 19, 2020
1 parent 3e4c83b commit 9fcd4bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion detectors/gcp/cloud-run.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ type CloudRun struct {
var _ resource.Detector = (*CloudRun)(nil)

// NewCloudRun creates a CloudRun detector.
// Specify nil to use the default metadata client.
func NewCloudRun() *CloudRun {
return &CloudRun{
mc: metadata.NewClient(nil),
Expand Down
6 changes: 3 additions & 3 deletions detectors/gcp/cloud-run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (c *client) ProjectID() (string, error) {

var _ metadataClient = (*client)(nil)

func TestCloudRunDetector_NotOnGCE(t *testing.T) {
func TestCloudRunDetectorNotOnGCE(t *testing.T) {
ctx := context.Background()
c := NewCloudRun()
c.setupForTest(nil, notOnGCE, getenv(nil))
Expand All @@ -73,7 +73,7 @@ func TestCloudRunDetector_NotOnGCE(t *testing.T) {
}
}

func TestCloudRunDetector_ExpectSuccess(t *testing.T) {
func TestCloudRunDetectorExpectSuccess(t *testing.T) {
ctx := context.Background()

metadata := map[string]string{
Expand Down Expand Up @@ -102,7 +102,7 @@ func TestCloudRunDetector_ExpectSuccess(t *testing.T) {
}
}

func TestCloudRunDetector_ExpectFail(t *testing.T) {
func TestCloudRunDetectorExpectFail(t *testing.T) {
ctx := context.Background()

tests := []struct {
Expand Down

0 comments on commit 9fcd4bd

Please sign in to comment.