(id string, op memcontract.Op)
| 619 | } |
| 620 | |
| 621 | func 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 | |
| 639 | func TestMemoryErrorsWrapAsExpected(t *testing.T) { |
| 640 | t.Parallel() |
no test coverage detected