Files
archie/.okf/codebase/internal/storage/storage_test.md
T
sam 7c34bdae5a okf: scaffold knowledge bundle and MCP server config
Adds a harvested .okf/ knowledge bundle (codebase concepts + starter
architecture/services/rules scaffolding) and .mcp.json pointing at the
shared okf MCP service (http://localhost:8765/archie-core/), which
serves multiple projects' bundles from a single process.
2026-07-22 04:36:50 +10:00

1.0 KiB

description, resource, tags, timestamp, title, type
description resource tags timestamp title type
Source module internal/storage/storage_test.go (389 lines). internal/storage/storage_test.go
go
source
2026-07-21T18:36:22Z storage_test.go Module

Module storage_test.go

Path: internal/storage/storage_test.go
Lines: 389

Snippet Preview

package storage

import (
	"context"
	"os"
	"sort"
	"testing"
)

// ── interface contract ───────────────────────────────────────────────

func TestBackendInterfaceIsSatisfied(t *testing.T) {
	// Compile-time check that DockerBackend satisfies Backend.
	var _ Backend = (*DockerBackend)(nil)
}

func TestTaskRefFields(t *testing.T) {
	ref := TaskRef{
		Owner:       "alice",
		Repo:        "demo",
		IssueNumber: 42,
		Ecosystem:   "go",
		WorktreeDir: "/tmp/worktree",
	}
	if ref.Owner != "alice" || ref.Repo != "demo" || ref.IssueNumber != 42 {
		t.Fatal("TaskRef fields not assignable")
	}
}

func TestMountStruct(t *testing.T) {