diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-03-21 21:24:02 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-03-21 21:24:02 +0000 |
| commit | 764d4d2d07449aec72c87afe941b7c63ea05e08c (patch) | |
| tree | 042b157cfff2ab358b5bb9b891f26944133b7065 /internal/models/atom_test.go | |
| parent | 5f4f59fc6302a4e44773d4a939ae7b3304d61f1f (diff) | |
feat: Phase 1 — remove bug feature and dead code
- Delete Bug struct, BugToAtom, SourceBug, TypeBug, TypeNote
- Remove bug store methods (SaveBug, GetBugs, ResolveBug, etc.)
- Remove HandleGetBugs, HandleReportBug, bug branches in handlers
- Remove bug routes, bugs.html template, bug UI from index.html
- Remove AddMealToPlanner stub + interface method
- Migration 018: DROP TABLE IF EXISTS bugs
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/models/atom_test.go')
| -rw-r--r-- | internal/models/atom_test.go | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/internal/models/atom_test.go b/internal/models/atom_test.go index 537d232..3ed4774 100644 --- a/internal/models/atom_test.go +++ b/internal/models/atom_test.go @@ -123,36 +123,6 @@ func TestMealToAtom(t *testing.T) { } } -func TestBugToAtom(t *testing.T) { - now := time.Now() - bug := Bug{ - ID: 42, - Description: "Something is broken", - CreatedAt: now, - } - - atom := BugToAtom(bug) - - if atom.ID != "bug-42" { - t.Errorf("Expected ID 'bug-42', got '%s'", atom.ID) - } - if atom.Title != "Something is broken" { - t.Errorf("Expected title 'Something is broken', got '%s'", atom.Title) - } - if atom.Source != SourceBug { - t.Errorf("Expected source Bug, got '%s'", atom.Source) - } - if atom.Type != TypeBug { - t.Errorf("Expected type Bug, got '%s'", atom.Type) - } - if atom.Priority != 3 { - t.Errorf("Expected high priority 3, got %d", atom.Priority) - } - if atom.SourceIcon != "🐛" { - t.Error("Expected bug icon") - } -} - func TestAtom_ComputeUIFields(t *testing.T) { // Test nil due date t.Run("nil due date", func(t *testing.T) { |
