Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for stringTestList (0.17 sec)

  1. pkg/printers/internalversion/printers_test.go

    	}
    	if !reflect.DeepEqual(expectedRows, rows) {
    		t.Errorf("mismatch: %s", cmp.Diff(expectedRows, rows))
    	}
    }
    
    type stringTestList []struct {
    	name, got, exp string
    }
    
    func TestTranslateTimestampSince(t *testing.T) {
    	tl := stringTestList{
    		{"a while from now", translateTimestampSince(metav1.Time{Time: time.Now().Add(2.1e9)}), "<invalid>"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
Back to top