caelum0x 49b183818c Unify gitgram + aitimemachine into the monorepo (de-submodule) and merge vendored engines
Convert gitgram/ and aitimemachine/ from embedded git repos (which showed as
opaque submodule gitlinks on GitHub) into fully-tracked first-party content.

AITM now merges its 7 vendored repos as first-party engines:
- memory: beads (Go task DAG) + context7 (docs SDK), unified into saved_contexts
- git: vendored C git (bundled binary) + gitnexus (in-process code intelligence)
- agentic: a2a (@a2a-js/sdk) + pal (AITM-managed Python subprocess)

Includes the full session's product build: Gitgram web/mobile/backend features,
AITM website/CLI/MCP, the unified memory layer, engine build tooling
(scripts/build-engines.sh, Dockerfile, CI), docs (README, ENGINES.md, ARCHITECTURE.md),
and extensive test suites.

Build artifacts, node_modules, external/, and gemini-cli are gitignored.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 14:14:09 +03:00

64 lines
1.5 KiB
Go

package main
import (
"testing"
"github.com/steveyegge/beads/internal/tracker"
)
func TestJiraSyncStats(t *testing.T) {
stats := tracker.SyncStats{}
if stats.Pulled != 0 {
t.Errorf("expected Pulled to be 0, got %d", stats.Pulled)
}
if stats.Pushed != 0 {
t.Errorf("expected Pushed to be 0, got %d", stats.Pushed)
}
if stats.Created != 0 {
t.Errorf("expected Created to be 0, got %d", stats.Created)
}
if stats.Updated != 0 {
t.Errorf("expected Updated to be 0, got %d", stats.Updated)
}
if stats.Skipped != 0 {
t.Errorf("expected Skipped to be 0, got %d", stats.Skipped)
}
if stats.Errors != 0 {
t.Errorf("expected Errors to be 0, got %d", stats.Errors)
}
if stats.Conflicts != 0 {
t.Errorf("expected Conflicts to be 0, got %d", stats.Conflicts)
}
}
func TestJiraSyncResult(t *testing.T) {
result := tracker.SyncResult{
Success: true,
Stats: tracker.SyncStats{
Created: 5,
Updated: 3,
},
LastSync: "2025-01-15T10:30:00Z",
}
if !result.Success {
t.Error("expected Success to be true")
}
if result.Stats.Created != 5 {
t.Errorf("expected Created to be 5, got %d", result.Stats.Created)
}
if result.Stats.Updated != 3 {
t.Errorf("expected Updated to be 3, got %d", result.Stats.Updated)
}
if result.LastSync != "2025-01-15T10:30:00Z" {
t.Errorf("unexpected LastSync value: %s", result.LastSync)
}
if result.Error != "" {
t.Errorf("expected Error to be empty, got %s", result.Error)
}
if len(result.Warnings) != 0 {
t.Errorf("expected Warnings to be empty, got %v", result.Warnings)
}
}