- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestBoolFlagMarshalJSON (0.09 sec)
-
internal/config/bool-flag_test.go
str := testCase.flag.String() if testCase.expectedResult != str { t.Fatalf("expected: %v, got: %v", testCase.expectedResult, str) } } } // Test BoolFlag.MarshalJSON() func TestBoolFlagMarshalJSON(t *testing.T) { var bf BoolFlag testCases := []struct { flag BoolFlag expectedResult string }{ {bf, `"off"`}, {BoolFlag(true), `"on"`}, {BoolFlag(false), `"off"`}, }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 3.5K bytes - Viewed (0)