mirror of
https://github.com/danog/gllvm.git
synced 2024-11-26 19:14:43 +01:00
put gocyclo out of it's misery.
This commit is contained in:
parent
7320529b18
commit
49c0709a81
@ -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)
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user