Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestEmbed (0.27 sec)

  1. src/cmd/go/internal/load/test.go

    			m[k] = append(m[k], v...)
    		}
    		ptest.Internal.Build.ImportPos = m
    		if testEmbed == nil && len(p.Internal.Embed) > 0 {
    			testEmbed = map[string][]string{}
    		}
    		for k, v := range p.Internal.Embed {
    			testEmbed[k] = v
    		}
    		ptest.Internal.Embed = testEmbed
    		ptest.EmbedFiles = str.StringList(p.EmbedFiles, p.TestEmbedFiles)
    		ptest.Internal.OrigImportPath = p.Internal.OrigImportPath
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  2. src/reflect/all_test.go

    	*R22
    	*R23
    	*R24
    }
    
    type R18 R17
    type R19 R17
    type R20 R17
    
    type R21 struct {
    	X int
    }
    
    type R22 R21
    type R23 R21
    type R24 R21
    
    func TestEmbed(t *testing.T) {
    	typ := TypeOf(R0{})
    	f, ok := typ.FieldByName("X")
    	if ok {
    		t.Fatalf(`FieldByName("X") should fail, returned %v`, f.Index)
    	}
    }
    
    func TestAllocsInterfaceBig(t *testing.T) {
    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