Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestPtrToMapOfMap (0.11 sec)

  1. src/encoding/gob/encoder_test.go

    		t.Fatalf("got %v; wanted %v", out, in)
    	}
    }
    
    // getDecEnginePtr cached engine for ut.base instead of ut.user so we passed
    // a *map and then tried to reuse its engine to decode the inner map.
    func TestPtrToMapOfMap(t *testing.T) {
    	Register(make(map[string]any))
    	subdata := make(map[string]any)
    	subdata["bar"] = "baz"
    	data := make(map[string]any)
    	data["foo"] = subdata
    
    	b := new(bytes.Buffer)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 29.7K bytes
    - Viewed (0)
Back to top