From 49c0709a810dbac31ea931f99d008e116c18de6a Mon Sep 17 00:00:00 2001 From: "Ian A. Mason" Date: Wed, 7 Sep 2022 14:48:50 -0700 Subject: [PATCH] put gocyclo out of it's misery. --- tests/entry_test.go | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/tests/entry_test.go b/tests/entry_test.go index 2ba136b..4340b68 100644 --- a/tests/entry_test.go +++ b/tests/entry_test.go @@ -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) @@ -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) + +} +