Add testing

This commit is contained in:
Melody Becker 2025-04-14 16:59:59 +02:00
parent 3233f8c27f
commit 06e6d457da
Signed by: mstar
SSH key fingerprint: SHA256:9VAo09aaVNTWKzPW7Hq2LW+ox9OdwmTSHRoD4mlz1yI
14 changed files with 273 additions and 5 deletions

View file

@ -24,14 +24,17 @@ type Note struct {
var _ shared.Clonable = &Note{}
var _ shared.Sanitisable = &Note{}
// No test, does nothing currently
func (note *Note) Sanitize() {
}
// No test, no data processing, only copy
func (note *Note) Clone() shared.Clonable {
tmp := *note
return &tmp
}
// No test, no data processing, only copy
func (n *Note) FromModel(m *models.Note) {
n.ID = m.ID
n.CreatedAt = m.CreatedAt