Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestInitOrderInfo (0.22 sec)

  1. src/cmd/compile/internal/types2/api_test.go

    				if desc == d {
    					found = true
    					break
    				}
    			}
    			if !found {
    				t.Errorf("package %s: no matching scope found for %s", name, desc)
    			}
    		}
    	}
    }
    
    func TestInitOrderInfo(t *testing.T) {
    	var tests = []struct {
    		src   string
    		inits []string
    	}{
    		{`package p0; var (x = 1; y = x)`, []string{
    			"x = 1", "y = x",
    		}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  2. src/go/types/api_test.go

    				if desc == d {
    					found = true
    					break
    				}
    			}
    			if !found {
    				t.Errorf("package %s: no matching scope found for %s", name, desc)
    			}
    		}
    	}
    }
    
    func TestInitOrderInfo(t *testing.T) {
    	var tests = []struct {
    		src   string
    		inits []string
    	}{
    		{`package p0; var (x = 1; y = x)`, []string{
    			"x = 1", "y = x",
    		}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
Back to top