(t *testing.T)
| 81 | } |
| 82 | |
| 83 | func TestCtxConfig(t *testing.T) { |
| 84 | t.Parallel() |
| 85 | |
| 86 | ctx := context.Background() |
| 87 | |
| 88 | // Check the default value |
| 89 | config := CtxConfig(ctx) |
| 90 | config.fs = nil |
| 91 | assert.Equal(t, NewConfig(nil), config) |
| 92 | |
| 93 | // Check that when we set a value, this properly extracts it. |
| 94 | config = NewConfig(memfs.New()) |
| 95 | ctx = context.WithValue(ctx, contextKeyConfig, config) |
| 96 | assert.Equal(t, config, CtxConfig(ctx)) |
| 97 | } |
| 98 | |
| 99 | func TestCtxSetUser(t *testing.T) { |
| 100 | t.Skip("not implemented") |