Skip to content

Commit

Permalink
delete unused test fucntion parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyBrito authored and cpuguy83 committed Jun 13, 2024
1 parent 2b44cb8 commit b417234
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -641,12 +641,12 @@ func TestSourceInlineDir(t *testing.T) {
t.Run(name, func(t *testing.T) {
src := Source{Inline: &SourceInline{Dir: dir}}
ops := getSourceOp(ctx, t, src)
checkMkdir(t, ops[0].GetFile(), src.Inline.Dir, "/test")
checkMkdir(t, ops[0].GetFile(), src.Inline.Dir)

t.Run("with files", func(t *testing.T) {
src.Inline.Dir.Files = testFiles()
ops := getSourceOp(ctx, t, src)
checkMkdir(t, ops[0].GetFile(), src.Inline.Dir, "/test")
checkMkdir(t, ops[0].GetFile(), src.Inline.Dir)

if len(ops) != len(src.Inline.Dir.Files)+1 {
t.Fatalf("expected %d ops, got %d\n%s", len(src.Inline.Dir.Files)+1, len(ops), ops)
Expand All @@ -663,7 +663,7 @@ func TestSourceInlineDir(t *testing.T) {
}
}

func checkMkdir(t *testing.T, op *pb.FileOp, src *SourceInlineDir, name string) {
func checkMkdir(t *testing.T, op *pb.FileOp, src *SourceInlineDir) {
if op == nil {
t.Fatal("expected dir op")
}
Expand Down

0 comments on commit b417234

Please sign in to comment.