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>
20 lines
528 B
Go
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)
|
|
}
|