- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for UnmarshalJSON (0.18 sec)
-
internal/config/bool-flag_test.go
data, _ := testCase.flag.MarshalJSON() if testCase.expectedResult != string(data) { t.Fatalf("expected: %v, got: %v", testCase.expectedResult, string(data)) } } } // Test BoolFlag.UnmarshalJSON() func TestBoolFlagUnmarshalJSON(t *testing.T) { testCases := []struct { data []byte expectedResult BoolFlag expectedErr bool }{ {[]byte(`{}`), BoolFlag(false), true},
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Tue Jun 01 21:59:40 GMT 2021 - 3.5K bytes - Viewed (0)