Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestByteCount (0.11 sec)

  1. pilot/pkg/networking/util/util_test.go

    			AppendLbEndpointMetadata(tt.metadata, input)
    			if !reflect.DeepEqual(input, tt.want) {
    				t.Errorf("Unexpected Endpoint metadata got %v, want %v", input, tt.want)
    			}
    		})
    	}
    }
    
    func TestByteCount(t *testing.T) {
    	cases := []struct {
    		in  int
    		out string
    	}{
    		{1, "1B"},
    		{1000, "1.0kB"},
    		{1_000_000, "1.0MB"},
    		{1_500_000, "1.5MB"},
    	}
    	for _, tt := range cases {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 01:17:58 UTC 2024
    - 40K bytes
    - Viewed (0)
Back to top