Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/internal/reflectlite/all_test.go

    	// Possible loops.
    	{&loop1, &loop1, true},
    	{&loop1, &loop2, true},
    	{&loopy1, &loopy1, true},
    	{&loopy1, &loopy2, true},
    }
    
    func TestTypeOf(t *testing.T) {
    	// Special case for nil
    	if typ := TypeOf(nil); typ != nil {
    		t.Errorf("expected nil type for nil value; got %v", typ)
    	}
    	for _, test := range typeOfTests {
    		v := ValueOf(test.a)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 19:26:08 UTC 2023
    - 24.2K bytes
    - Viewed (0)
Back to top