Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for checkTextMarshalMatchesAppendTo (0.19 sec)

  1. src/net/netip/fuzz_test.go

    	}
    }
    
    type appendMarshaler interface {
    	encoding.TextMarshaler
    	AppendTo([]byte) []byte
    }
    
    // checkTextMarshalMatchesAppendTo checks that x's MarshalText matches x's AppendTo.
    func checkTextMarshalMatchesAppendTo(t *testing.T, x appendMarshaler) {
    	buf, err := x.MarshalText()
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	buf2 := make([]byte, 0, len(buf))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 20 23:46:23 UTC 2021
    - 10.5K bytes
    - Viewed (0)
Back to top