(t *testing.T)
| 930 | } |
| 931 | |
| 932 | func TestGetMethodParamIntValue(t *testing.T) { |
| 933 | params := url.Values{} |
| 934 | params.Set("methods.GetValue.timeout", "100") |
| 935 | |
| 936 | u := &URL{} |
| 937 | u.SetParams(params) |
| 938 | |
| 939 | v := u.GetMethodParamIntValue("GetValue", "timeout", 0) |
| 940 | assert.Equal(t, 100, v) |
| 941 | |
| 942 | // missing method param |
| 943 | v2 := u.GetMethodParamIntValue("OtherMethod", "timeout", 50) |
| 944 | assert.Equal(t, 50, v2) |
| 945 | } |
| 946 | |
| 947 | func TestGetMethodParamInt64(t *testing.T) { |
| 948 | params := url.Values{} |
nothing calls this directly
no test coverage detected