Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for StringFull (0.04 sec)

  1. internal/hash/checksum_test.go

    			}
    			// Verify the checksum type
    			expectedType := chksm.Type
    			if gotChksm.Type != expectedType {
    				t.Errorf("Type mismatch for %s: expected %s, got %s", tt.name, expectedType.StringFull(), gotChksm.Type.StringFull())
    			}
    		})
    	}
    }
    
    // TestChecksumSerializeDeserialize checks AppendTo can be reversed by ChecksumFromBytes
    func TestChecksumSerializeDeserialize(t *testing.T) {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 22 14:15:21 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  2. internal/hash/checksum.go

    		return "SHA256"
    	case c.Is(ChecksumCRC64NVME):
    		return "CRC64NVME"
    	case c.Is(ChecksumNone):
    		return ""
    	}
    	return "invalid"
    }
    
    // StringFull returns the type and all flags as a string.
    func (c ChecksumType) StringFull() string {
    	out := []string{c.String()}
    	if c.Is(ChecksumMultipart) {
    		out = append(out, "MULTIPART")
    	}
    	if c.Is(ChecksumIncludesMultipart) {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 22 14:15:21 UTC 2025
    - 18.3K bytes
    - Viewed (0)
Back to top