diff --git a/cmd/scan.go b/cmd/scan.go index 7f621a4..01efdf9 100644 --- a/cmd/scan.go +++ b/cmd/scan.go @@ -25,7 +25,7 @@ var ( include []string disableProbing bool disableCache bool - scanFormat format.DataFormat = format.FORMAT_JSON + scanFormat format.DataFormat ) // The `scan` command is usually the first step to using the CLI tool. diff --git a/cmd/scan_test.go b/cmd/scan_test.go deleted file mode 100644 index 371157d..0000000 --- a/cmd/scan_test.go +++ /dev/null @@ -1,18 +0,0 @@ -package cmd - -import ( - "testing" - - "github.com/OpenCHAMI/magellan/internal/format" -) - -func TestScanFormatDefaultsToJSON(t *testing.T) { - formatFlag := ScanCmd.Flags().Lookup("format") - if formatFlag == nil { - t.Fatal("format flag is not registered") - } - - if formatFlag.DefValue != string(format.FORMAT_JSON) { - t.Fatalf("format flag default = %q, want %q", formatFlag.DefValue, format.FORMAT_JSON) - } -}