MCPcopy Create free account
hub / github.com/NV404/gova / WithStore

Function WithStore

testing.go:59–63  ·  view source on GitHub ↗

WithStore pre-provides a store value for isolated testing.

(key *StoreKey[T], value T)

Source from the content-addressed store, hash-verified

57
58// WithStore pre-provides a store value for isolated testing.
59func WithStore[T any](key *StoreKey[T], value T) TestOption {
60 return func(s *Scope) {
61 Provide(s, key, value)
62 }
63}
64
65// RenderedTree is the result of TestRender. It provides query methods
66// to find nodes and simulate interactions, then re-render to see changes.

Callers 1

TestTestRenderWithStoreFunction · 0.85

Calls 1

ProvideFunction · 0.85

Tested by 1

TestTestRenderWithStoreFunction · 0.68