CAT-K2: a Store on the ledger, the records' heads without text and each section's text once
ledgerStore implements Store on the tool runner's ledger calls: a record is the instance decision/0290 or research/081, a Save is the operation named by what changed, a section's text is written once in its write-section and named by digest and sequence in the head, a version is read back from the history, the whole-set findings and the told marks are keys of the state findings. Every test that runs over each store now also runs over the ledger, played with the manifest's own types. The bundle's pipe to the tool runner needs the SDK's raw request (request to A1); until then it answers loudly. Issue 1966. Claude-Session: https://claude.ai/code/session_01JG73KJNrH5EgFXMKKYSrig
This commit is contained in:
@@ -146,9 +146,11 @@ func pgStore(t *testing.T) *PgStore {
|
||||
return s
|
||||
}
|
||||
|
||||
// eachStore runs a test over the store in memory and over postgres.
|
||||
// eachStore runs a test over the store in memory, over the ledger (played here, with the manifest's own types) and over
|
||||
// postgres.
|
||||
func eachStore(t *testing.T, run func(t *testing.T, s Store)) {
|
||||
t.Run("memory", func(t *testing.T) { run(t, newMemStore()) })
|
||||
t.Run("ledger", func(t *testing.T) { run(t, newLedgerStore(newFakeLedger(t), newFakeStates())) })
|
||||
t.Run("postgres", func(t *testing.T) { run(t, pgStore(t)) })
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user