Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

    			result := c.x.Equal(c.y)
    			if result != c.result {
    				t.Errorf("Failed equality test for '%v', '%v': expected %+v, got %+v", c.x, c.y, c.result, result)
    			}
    		})
    	}
    }
    
    func TestTimeBefore(t *testing.T) {
    	t1 := NewTime(time.Now())
    	cases := []struct {
    		name string
    		x    *Time
    		y    *Time
    	}{
    		{"nil <? nil", nil, nil},
    		{"!nil <? !nil", &t1, &t1},
    		{"nil <? !nil", nil, &t1},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top