Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestInterfaceSet (0.1 sec)

  1. src/encoding/json/decode_test.go

    	}
    }
    
    func intp(x int) *int {
    	p := new(int)
    	*p = x
    	return p
    }
    
    func intpp(x *int) **int {
    	pp := new(*int)
    	*pp = x
    	return pp
    }
    
    func TestInterfaceSet(t *testing.T) {
    	tests := []struct {
    		CaseName
    		pre  any
    		json string
    		post any
    	}{
    		{Name(""), "foo", `"bar"`, "bar"},
    		{Name(""), "foo", `2`, 2.0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:40:14 UTC 2024
    - 67.6K bytes
    - Viewed (0)
Back to top