Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestFilterDuplicates (0.26 sec)

  1. src/go/ast/filter_test.go

    const golden = `package p
    
    type t1 struct{}
    type t2 struct{}
    
    func f1() {}
    func f2() {}
    
    func (t1) f1() {}
    func (t1) f2() {}
    
    func (t2) f1() {}
    
    func (x *t2) f2() {}
    `
    
    func TestFilterDuplicates(t *testing.T) {
    	// parse input
    	fset := token.NewFileSet()
    	file, err := parser.ParseFile(fset, "", input, 0)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// create package
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 15:35:30 UTC 2022
    - 1.6K bytes
    - Viewed (0)
Back to top