Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestCanSetField (0.17 sec)

  1. src/internal/reflectlite/all_test.go

    		case abi.Bool:
    			v.Set(ValueOf(true))
    		}
    		s := valueToString(v)
    		if s != tt.s {
    			t.Errorf("#%d: have %#q, want %#q", i, s, tt.s)
    		}
    	}
    }
    
    func TestCanSetField(t *testing.T) {
    	type embed struct{ x, X int }
    	type Embed struct{ x, X int }
    	type S1 struct {
    		embed
    		x, X int
    	}
    	type S2 struct {
    		*embed
    		x, X int
    	}
    	type S3 struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 19:26:08 UTC 2023
    - 24.2K bytes
    - Viewed (0)
  2. src/reflect/all_test.go

    				t.Errorf(
    					"#%d: v.%s() returned %t for type %T, want %t",
    					i,
    					ops[j],
    					got[j],
    					tc.i,
    					tc.want[j],
    				)
    			}
    		}
    	}
    }
    
    func TestCanSetField(t *testing.T) {
    	type embed struct{ x, X int }
    	type Embed struct{ x, X int }
    	type S1 struct {
    		embed
    		x, X int
    	}
    	type S2 struct {
    		*embed
    		x, X int
    	}
    	type S3 struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top