Skip to content

Commit 49c0709

Browse files
committed
put gocyclo out of it's misery.
1 parent 7320529 commit 49c0709

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

tests/entry_test.go

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -105,18 +105,6 @@ func Test_obscure_functionality(t *testing.T) {
105105
}
106106
}
107107

108-
func Test_file_type(t *testing.T) {
109-
fictionalFile := "HopefullyThereIsNotAFileCalledThisNearBy.txt"
110-
dataDir := "../data"
111-
sourceFile := "../data/helloworld.c"
112-
objectFile := "../data/bhello.notanextensionthatwerecognize"
113-
exeFile := "../data/bhello"
114-
115-
BinaryFile(t, fictionalFile, dataDir, sourceFile, objectFile, exeFile)
116-
PlainFile(t, fictionalFile, dataDir, sourceFile, objectFile, exeFile)
117-
118-
}
119-
120108
func BinaryFile(t *testing.T, fictionalFile string, dataDir string, sourceFile string, objectFile string, exeFile string) {
121109
var binaryFileType shared.BinaryType
122110
binaryFileType = shared.GetBinaryType(fictionalFile)
@@ -195,3 +183,16 @@ func PlainFile(t *testing.T, fictionalFile string, dataDir string, sourceFile st
195183
fmt.Printf("shared.IsPlainFile(%v) returned %v\n", exeFile, plain)
196184
}
197185
}
186+
187+
func Test_file_type(t *testing.T) {
188+
fictionalFile := "HopefullyThereIsNotAFileCalledThisNearBy.txt"
189+
dataDir := "../data"
190+
sourceFile := "../data/helloworld.c"
191+
objectFile := "../data/bhello.notanextensionthatwerecognize"
192+
exeFile := "../data/bhello"
193+
194+
BinaryFile(t, fictionalFile, dataDir, sourceFile, objectFile, exeFile)
195+
PlainFile(t, fictionalFile, dataDir, sourceFile, objectFile, exeFile)
196+
197+
}
198+

0 commit comments

Comments
 (0)