- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for TestAppendToMarshal (4.09 sec)
-
src/net/netip/export_test.go
return uint128{hi, lo} } func MkAddr(u Uint128, z unique.Handle[AddrDetail]) Addr { return Addr{u, z} } func IPv4(a, b, c, d uint8) Addr { return AddrFrom4([4]byte{a, b, c, d}) } var TestAppendToMarshal = testAppendToMarshal func (a Addr) IsZero() bool { return a.isZero() } func (p Prefix) IsZero() bool { return p.isZero() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 18:14:15 UTC 2024 - 730 bytes - Viewed (0) -
src/net/netip/netip_pkg_test.go
} testAppendToMarshal(t, ipp) }) } } type appendMarshaler interface { encoding.TextMarshaler AppendTo([]byte) []byte } // testAppendToMarshal tests that x's AppendTo and MarshalText methods yield the same results. // x's MarshalText method must not return an error. func testAppendToMarshal(t *testing.T, x appendMarshaler) { t.Helper()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 02 15:37:19 UTC 2023 - 9K bytes - Viewed (0) -
src/net/netip/netip_test.go
if wants == "" { wants = test.in } if s != wants { t.Errorf("ParseAddr(%q).String() got %q, want %q", test.in, s, wants) } // Check that AppendTo matches MarshalText. TestAppendToMarshal(t, got) // Check that MarshalText/UnmarshalText work similarly to // ParseAddr/String (see TestIPMarshalUnmarshal for // marshal-specific behavior that's not common with // ParseAddr/String).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 17:10:01 UTC 2024 - 54.3K bytes - Viewed (0)