Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestFindFunc (0.17 sec)

  1. pkg/slices/slices_test.go

    		t.Run(tc.name, func(t *testing.T) {
    			if got := Contains(tc.slice, tc.v); got != tc.want {
    				t.Errorf("Contains(%v, %v) = %v; want %v", tc.slice, tc.v, got, tc.want)
    			}
    		})
    	}
    }
    
    func TestFindFunc(t *testing.T) {
    	emptyElement := []string{}
    	elements := []string{"a", "b", "c"}
    	tests := []struct {
    		name     string
    		elements []string
    		fn       func(string) bool
    		want     *string
    	}{
    		{
    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