Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestParseHexUint (0.23 sec)

  1. cmd/streaming-signature-v4_test.go

    		if err != tt.expectedErr {
    			t.Errorf("Test %d: Expected %s, got %s this", i+1, tt.expectedErr, err)
    		}
    	}
    }
    
    // Tests parsing hex number into its uint64 decimal equivalent.
    func TestParseHexUint(t *testing.T) {
    	type testCase struct {
    		in      string
    		want    uint64
    		wantErr string
    	}
    	tests := []testCase{
    		{"x", 0, "invalid byte in chunk length"},
    		{"0000000000000000", 0, ""},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 5.7K bytes
    - Viewed (0)
  2. src/net/http/internal/chunked_test.go

    		}
    		if err != io.ErrUnexpectedEOF {
    			t.Fatalf("read error = %v; want ErrUnexpectedEOF", err)
    		}
    	})
    	if mallocs > 1.5 {
    		t.Errorf("mallocs = %v; want 1", mallocs)
    	}
    }
    
    func TestParseHexUint(t *testing.T) {
    	type testCase struct {
    		in      string
    		want    uint64
    		wantErr string
    	}
    	tests := []testCase{
    		{"x", 0, "invalid byte in chunk length"},
    		{"0000000000000000", 0, ""},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 04 20:45:19 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top