(t *testing.T)
| 67 | } |
| 68 | |
| 69 | func Test_SetupStatePersisted(t *testing.T) { |
| 70 | var s *stateful |
| 71 | ctx, err := SetupState(context.TODO(), &s) |
| 72 | |
| 73 | assert.NoError(t, err) |
| 74 | |
| 75 | expected := stateful{Number: 0, Str: ""} |
| 76 | assert.Equal(t, expected, *s) |
| 77 | assert.Equal(t, &expected, FetchState[stateful](ctx)) |
| 78 | } |
| 79 | |
| 80 | func Test_SetupStatePersistedTwoTypes(t *testing.T) { |
| 81 | var s *stateful |
nothing calls this directly
no test coverage detected