Conditions | 1 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | package smobilpay |
||
25 | func TestWithNonce(t *testing.T) { |
||
26 | // Setup |
||
27 | t.Parallel() |
||
28 | |||
29 | // Arrange |
||
30 | config := defaultRequestConfig() |
||
31 | timestamp := time.Now().Add(1 * time.Hour) |
||
32 | |||
33 | // Act |
||
34 | WithRequestTimestamp(timestamp).apply(config) |
||
35 | |||
36 | // Assert |
||
37 | assert.Equal(t, timestamp, config.timestamp) |
||
38 | } |
||
39 |