package identity_test import ( "testing" "gitea.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) }