Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BinaryMarshaler (0.36 sec)

  1. src/crypto/sha512/sha512_test.go

    		t.Run(tt.name, func(t *testing.T) {
    			for _, test := range tt.golden {
    				h := tt.newHash()
    				h2 := tt.newHash()
    
    				io.WriteString(h, test.in[:len(test.in)/2])
    
    				state, err := h.(encoding.BinaryMarshaler).MarshalBinary()
    				if err != nil {
    					t.Errorf("could not marshal: %v", err)
    					return
    				}
    
    				if string(state) != test.halfState {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 03 21:17:08 UTC 2023
    - 105.6K bytes
    - Viewed (0)
Back to top