Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestToIntValue (0.11 sec)

  1. operator/pkg/util/reflect_test.go

    				got = append(got, v)
    			}
    		}
    		if !reflect.DeepEqual(got, tt.want) {
    			t.Errorf("%s: got %v, want %v", tt.desc, got, tt.want)
    		}
    	}
    }
    
    func TestToIntValue(t *testing.T) {
    	var got []int
    	for _, v := range allTypes {
    		if i, ok := ToIntValue(v); ok {
    			got = append(got, i)
    		}
    	}
    	want := []int{-42, -43, -44, -45, -46, 42, 43, 44, 45, 46}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 10.2K bytes
    - Viewed (0)
Back to top