Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestScalarDecInstructions (0.18 sec)

  1. src/encoding/gob/codec_test.go

    	state := newDecodeState(b)
    	state.fieldnum = -1
    	return state
    }
    
    // Test instruction execution for decoding.
    // Do not run the machine yet; instead do individual instructions crafted by hand.
    func TestScalarDecInstructions(t *testing.T) {
    	ovfl := errors.New("overflow")
    
    	// bool
    	{
    		var data bool
    		instr := &decInstr{decBool, 6, nil, ovfl}
    		state := newDecodeStateFromData(boolResult)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 19 23:03:14 UTC 2023
    - 36.9K bytes
    - Viewed (0)
Back to top