Files
mathiasandClaude Opus 4.8 4c1f36f9eb
CD / Lint / Test / Vet (push) Successful in 7s
CD / Build & Import (push) Successful in 23s
CD / Deploy via GitOps (push) Has been skipped
chore(rename): module gitea.d-ma.be → git.d-ma.be/mathias/gitea-mcp (#39)
Gitea host renamed (infra ADR-0004); the mcp-chassis dep already migrated
(3329ff3), so the sequencing gate is clear. `go mod edit -module` + bulk import
rewrite across all .go files. gitea-mcp is a server binary (not an imported
library), so no downstream consumers break. build + task check green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-03 22:48:26 +02:00

20 lines
528 B
Go

package identity_test
import (
"testing"
"git.d-ma.be/mathias/gitea-mcp/internal/identity"
"github.com/stretchr/testify/assert"
)
func TestApplyFooterAppendsWhenCallerSet(t *testing.T) {
body := identity.ApplyFooter("Initial body.", "mathiasbq")
assert.Contains(t, body, "Initial body.")
assert.Contains(t, body, "_Created via git-mcp on behalf of @mathiasbq_")
}
func TestApplyFooterUnchangedWhenCallerEmpty(t *testing.T) {
body := identity.ApplyFooter("Initial body.", "")
assert.Equal(t, "Initial body.", body)
}