Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. staging/src/k8s.io/apiserver/pkg/server/httplog/httplog_test.go

    			t.Fatalf("should not log on %v by default", x)
    		}
    	}
    
    	for _, x := range []int{500, 100} {
    		if !DefaultStacktracePred(x) {
    			t.Fatalf("should log on %v by default", x)
    		}
    	}
    }
    
    func TestStatusIsNot(t *testing.T) {
    	statusTestTable := []struct {
    		status   int
    		statuses []int
    		want     bool
    	}{
    		{http.StatusOK, []int{}, true},
    		{http.StatusOK, []int{http.StatusOK}, false},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 05 18:05:09 UTC 2021
    - 6.2K bytes
    - Viewed (0)
Back to top