Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for empty (0.21 sec)

  1. internal/config/config_test.go

    			expectedFields: map[string]struct{}{
    				`connection_string="host=localhost port=2832"`: {},
    				`comment="really long comment"`:                {},
    			},
    		},
    		// Incorrect delimiter, expected fields should be empty.
    		{
    			input:          `comment:"really long comment" connection_string:"host=localhost port=2832"`,
    			keys:           []string{"connection_string", "comment"},
    			expectedFields: map[string]struct{}{},
    		},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Aug 18 22:55:17 GMT 2022
    - 4.2K bytes
    - Viewed (0)
  2. internal/event/config_test.go

    	testCases := []struct {
    		data      []byte
    		expectErr bool
    	}{
    		{dataCase1, false},
    		{dataCase2, false},
    		{dataCase3, false},
    		{dataCase4, true},
    		// make sure we don't fail when queue is empty.
    		{dataCase5, false},
    	}
    
    	for i, testCase := range testCases {
    		err := xml.Unmarshal(testCase.data, &Config{})
    		expectErr := (err != nil)
    
    		if expectErr != testCase.expectErr {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Dec 05 10:16:33 GMT 2023
    - 29K bytes
    - Viewed (0)
Back to top