Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestFilterDuplicates (0.17 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)
  2. pkg/slices/slices_test.go

    		notEqual = append(notEqual, strconv.Itoa(i))
    	}
    	notEqual[size-1] = "z"
    
    	for n := 0; n < b.N; n++ {
    		EqualUnordered(l, equal)
    		EqualUnordered(l, notEqual)
    	}
    }
    
    func TestFilterDuplicates(t *testing.T) {
    	tests := []struct {
    		name string
    		in   []string
    		out  []string
    	}{
    		{
    			name: "empty",
    			in:   nil,
    			out:  nil,
    		},
    		{
    			name: "one",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 18.2K bytes
    - Viewed (0)
Back to top