Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestTypeNamingOrder (0.16 sec)

  1. src/go/internal/gcimporter/testdata/g.go

    // Copyright 2016 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Input for TestTypeNamingOrder
    
    // ensures that the order in which "type A B" declarations are
    // processed is correct; this was a problem for unified IR imports.
    
    package g
    
    type Client struct {
    	common service
    	A      *AService
    	B      *BService
    }
    
    type service struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jul 30 00:27:25 UTC 2022
    - 498 bytes
    - Viewed (0)
  2. src/go/internal/gcimporter/gcimporter_test.go

    	// make sure all indirectly imported packages have names
    	for _, imp := range pkg.Imports() {
    		if imp.Name() == "" {
    			t.Errorf("no name for %s package", imp.Path())
    		}
    	}
    }
    
    func TestTypeNamingOrder(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    
    	// This package only handles gc export data.
    	if runtime.Compiler != "gc" {
    		t.Skipf("gc-built packages not available (compiler = %s)", runtime.Compiler)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 21.9K bytes
    - Viewed (0)
Back to top