Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestSizeStructCache (0.2 sec)

  1. src/encoding/binary/binary_test.go

    				t.Error(err)
    			}
    			if b1.A != b2.A || b1.B != b2.B || b1.C != b2.C {
    				t.Errorf("%#v != %#v", b1, b2)
    			}
    		})
    	}
    }
    
    func TestSizeStructCache(t *testing.T) {
    	// Reset the cache, otherwise multiple test runs fail.
    	structSize = sync.Map{}
    
    	count := func() int {
    		var i int
    		structSize.Range(func(_, _ any) bool {
    			i++
    			return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:16:18 UTC 2024
    - 25.4K bytes
    - Viewed (0)
Back to top