Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestVerbsJsonIterUnmarshalJSON (0.9 sec)

  1. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/types_test.go

    		}
    		if string(result) != c.result {
    			t.Errorf("[%d] Failed to marshal input: '%v': expected '%v', got '%v'", i, c.input, c.result, string(result))
    		}
    	}
    }
    
    func TestVerbsJsonIterUnmarshalJSON(t *testing.T) {
    	cases := []struct {
    		input  string
    		result APIResource
    	}{
    		{`{}`, APIResource{}},
    		{`{"verbs":null}`, APIResource{}},
    		{`{"verbs":[]}`, APIResource{Verbs: Verbs([]string{})}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 20 16:49:23 UTC 2021
    - 4K bytes
    - Viewed (0)
Back to top