MCPcopy Create free account
hub / github.com/compozy/agh / testMemoryDecision

Function testMemoryDecision

internal/cli/memory_test.go:621–637  ·  view source on GitHub ↗
(id string, op memcontract.Op)

Source from the content-addressed store, hash-verified

619}
620
621func testMemoryDecision(id string, op memcontract.Op) contract.MemoryDecisionPayload {
622 return contract.MemoryDecisionPayload{
623 ID: id,
624 CandidateHash: "sha256:test",
625 Op: contract.MemoryDecisionOp(op.String()),
626 Scope: memcontract.ScopeWorkspace,
627 TargetFilename: "prefs.md",
628 Frontmatter: memcontract.Header{
629 Name: "Prefs",
630 Type: memcontract.TypeUser,
631 },
632 Confidence: 0.9,
633 Source: memcontract.SourceRule,
634 Reason: "accepted",
635 DecidedAt: fixedTestNow,
636 }
637}
638
639func TestMemoryErrorsWrapAsExpected(t *testing.T) {
640 t.Parallel()

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected