MCPcopy Create free account
hub / github.com/diillson/chatcli / fakeContextAdapter

Struct fakeContextAdapter

cli/plugins/builtin_context_test.go:16–29  ·  view source on GitHub ↗

fakeContextAdapter records calls for assertions.

Source from the content-addressed store, hash-verified

14
15// fakeContextAdapter records calls for assertions.
16type fakeContextAdapter struct {
17 createName, createMode, createDesc string
18 createPaths []string
19 createForce bool
20 attachName string
21 attachRag, attachPriority int
22 detachName, deleteName string
23 listed, statused, metricsed bool
24 updateName, showName, mergeName string
25 inspectName string
26 inspectChunk int
27 mergeSources []string
28 exportName, exportPath, importPath string
29}
30
31func (f *fakeContextAdapter) Update(name string, paths []string, mode, desc string, tags []string) (string, error) {
32 f.updateName = name

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected