Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for formatHosts (0.23 sec)

  1. pkg/printers/internalversion/printers.go

    	}
    	className := "<none>"
    	if obj.Spec.IngressClassName != nil {
    		className = *obj.Spec.IngressClassName
    	}
    	hosts := formatHosts(obj.Spec.Rules)
    	address := ingressLoadBalancerStatusStringer(obj.Status.LoadBalancer, options.Wide)
    	ports := formatPorts(obj.Spec.TLS)
    	createTime := translateTimestampSince(obj.CreationTimestamp)
    	row.Cells = append(row.Cells, obj.Name, className, hosts, address, ports, createTime)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 128.3K bytes
    - Viewed (0)
  2. src/io/fs/format_test.go

    	},
    }
    
    func TestFormatFileInfo(t *testing.T) {
    	for i, test := range formatTests {
    		got := FormatFileInfo(&test.input)
    		if got != test.wantFileInfo {
    			t.Errorf("%d: FormatFileInfo(%#v) = %q, want %q", i, test.input, got, test.wantFileInfo)
    		}
    	}
    }
    
    func TestFormatDirEntry(t *testing.T) {
    	for i, test := range formatTests {
    		got := FormatDirEntry(&test.input)
    		if got != test.wantDirEntry {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 02 17:59:28 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  3. internal/etag/etag_test.go

    		}
    		if isEncrypted := tag.IsEncrypted(); isEncrypted != test.IsEncrypted {
    			t.Fatalf("Test %d: got '%v' - want '%v'", i, isEncrypted, test.IsEncrypted)
    		}
    	}
    }
    
    var formatTests = []struct {
    	ETag    string
    	AWSETag string
    }{
    	{ETag: "3b83ef96387f14655fc854ddc3c6bd57", AWSETag: "3b83ef96387f14655fc854ddc3c6bd57"},                                                                 // 0
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 18 17:00:54 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  4. src/math/big/intconv_test.go

    			t.Errorf("#%d (input '%s') got: %s want: %d", i, test.in, n1, test.val)
    		}
    		if n2.Cmp(expected) != 0 {
    			t.Errorf("#%d (input '%s') got: %s want: %d", i, test.in, n2, test.val)
    		}
    	}
    }
    
    var formatTests = []struct {
    	input  string
    	format string
    	output string
    }{
    	{"<nil>", "%x", "<nil>"},
    	{"<nil>", "%#x", "<nil>"},
    	{"<nil>", "%#y", "%!y(big.Int=<nil>)"},
    
    	{"10", "%b", "1010"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 22:58:58 UTC 2019
    - 10K bytes
    - Viewed (0)
  5. src/mime/mediatype_test.go

    		}
    	}
    }
    
    type formatTest struct {
    	typ    string
    	params map[string]string
    	want   string
    }
    
    var formatTests = []formatTest{
    	{"noslash", map[string]string{"X": "Y"}, "noslash; x=Y"}, // e.g. Content-Disposition values (RFC 2183); issue 11289
    	{"foo bar/baz", nil, ""},
    	{"foo/bar baz", nil, ""},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 26 17:58:37 UTC 2022
    - 18.1K bytes
    - Viewed (0)
  6. src/time/format_test.go

    			t.Errorf("appendInt(%d, %d) = %s, want %s", tt.in, tt.width, got, tt.want)
    		}
    	}
    }
    
    type FormatTest struct {
    	name   string
    	format string
    	result string
    }
    
    var formatTests = []FormatTest{
    	{"ANSIC", ANSIC, "Wed Feb  4 21:00:57 2009"},
    	{"UnixDate", UnixDate, "Wed Feb  4 21:00:57 PST 2009"},
    	{"RubyDate", RubyDate, "Wed Feb 04 21:00:57 -0800 2009"},
    	{"RFC822", RFC822, "04 Feb 09 21:00 PST"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:58:29 UTC 2024
    - 36.4K bytes
    - Viewed (0)
Back to top