Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jazanne committed Nov 13, 2023
1 parent bc27d6c commit 60274e2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions diff/diff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func newProcessFlagAccEnv() *testProcessor {
}
}

func TestCheckDiff(t *testing.T) {
func Test_checkDiffFile(t *testing.T) {
cases := []struct {
name string
fileName string
Expand Down Expand Up @@ -106,7 +106,8 @@ func TestCheckDiff(t *testing.T) {
Hunks: []*diff.Hunk{hunk},
}
filePath, ignore := checkDiffFile(&diff, "../testdata")
assert.Equal(t, tc.fileName, filePath)
expectedFilePath := "../testdata/" + tc.fileName
assert.Equal(t, expectedFilePath, filePath)
assert.Equal(t, tc.skip, ignore)
})
}
Expand Down

0 comments on commit 60274e2

Please sign in to comment.