Skip to content

Commit

Permalink
put gocyclo out of it's misery.
Browse files Browse the repository at this point in the history
  • Loading branch information
ianamason committed Sep 7, 2022
1 parent 7320529 commit 49c0709
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions tests/entry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,6 @@ func Test_obscure_functionality(t *testing.T) {
}
}

func Test_file_type(t *testing.T) {
fictionalFile := "HopefullyThereIsNotAFileCalledThisNearBy.txt"
dataDir := "../data"
sourceFile := "../data/helloworld.c"
objectFile := "../data/bhello.notanextensionthatwerecognize"
exeFile := "../data/bhello"

BinaryFile(t, fictionalFile, dataDir, sourceFile, objectFile, exeFile)
PlainFile(t, fictionalFile, dataDir, sourceFile, objectFile, exeFile)

}

func BinaryFile(t *testing.T, fictionalFile string, dataDir string, sourceFile string, objectFile string, exeFile string) {
var binaryFileType shared.BinaryType
binaryFileType = shared.GetBinaryType(fictionalFile)
Expand Down Expand Up @@ -195,3 +183,16 @@ func PlainFile(t *testing.T, fictionalFile string, dataDir string, sourceFile st
fmt.Printf("shared.IsPlainFile(%v) returned %v\n", exeFile, plain)
}
}

func Test_file_type(t *testing.T) {
fictionalFile := "HopefullyThereIsNotAFileCalledThisNearBy.txt"
dataDir := "../data"
sourceFile := "../data/helloworld.c"
objectFile := "../data/bhello.notanextensionthatwerecognize"
exeFile := "../data/bhello"

BinaryFile(t, fictionalFile, dataDir, sourceFile, objectFile, exeFile)
PlainFile(t, fictionalFile, dataDir, sourceFile, objectFile, exeFile)

}

0 comments on commit 49c0709

Please sign in to comment.