Conditions | 1 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | package smobilpay |
||
10 | func TestWithTimestamp(t *testing.T) { |
||
11 | // Setup |
||
12 | t.Parallel() |
||
13 | |||
14 | // Arrange |
||
15 | config := defaultRequestConfig() |
||
16 | timestamp := time.Now().Add(1 * time.Hour) |
||
17 | |||
18 | // Act |
||
19 | WithRequestTimestamp(timestamp).apply(config) |
||
20 | |||
21 | // Assert |
||
22 | assert.Equal(t, timestamp, config.timestamp) |
||
23 | } |
||
39 |