Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testReflectType (0.38 sec)

  1. src/internal/reflectlite/all_test.go

    	if s != want {
    		t.Errorf("#%d: have %#q, want %#q", i, s, want)
    	}
    }
    
    func testReflectType(t *testing.T, i int, typ Type, want string) {
    	s := TypeString(typ)
    	if s != want {
    		t.Errorf("#%d: have %#q, want %#q", i, s, want)
    	}
    }
    
    func TestTypes(t *testing.T) {
    	for i, tt := range typeTests {
    		testReflectType(t, i, Field(ValueOf(tt.i), 0).Type(), tt.s)
    	}
    }
    
    func TestSetValue(t *testing.T) {
    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