Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestParseBoolFlag (0.1 sec)

  1. internal/config/bool-flag_test.go

    		}
    		if err == nil && testCase.expectedResult != flag {
    			t.Fatalf("result: expected: %v, got: %v", testCase.expectedResult, flag)
    		}
    	}
    }
    
    // Test ParseBoolFlag()
    func TestParseBoolFlag(t *testing.T) {
    	testCases := []struct {
    		flagStr        string
    		expectedResult BoolFlag
    		expectedErr    bool
    	}{
    		{"", BoolFlag(false), true},
    		{"junk", BoolFlag(false), true},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 3.5K bytes
    - Viewed (0)
Back to top