Skip to content

Commit

Permalink
all: rename cmpequal command to check
Browse files Browse the repository at this point in the history
  • Loading branch information
matloob committed May 15, 2019
1 parent de14ac4 commit 0d60d3d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
File renamed without changes.
2 changes: 0 additions & 2 deletions cmpequal/cmpequal.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package cmpequal

import (
"fmt"
"go/ast"
"go/types"
"golang.org/x/tools/go/analysis"
Expand All @@ -27,7 +26,6 @@ func run(pass *analysis.Pass) (interface{}, error) {
return // not a function call
}

fmt.Println(fn.FullName())
if fn.FullName() != "github.com/google/go-cmp/cmp.Equal" { // should also check cmp.Diff, etc.
return // not a call to Equal
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ module github.com/matloob/analysistalk
go 1.12

require (
github.com/google/go-cmp v0.2.0 // indirect
github.com/google/go-cmp v0.2.0
golang.org/x/tools v0.0.0-20190424031103-cb2dda6eabdf
)

0 comments on commit 0d60d3d

Please sign in to comment.