WithType sets the type of an actor.
(t ActorType)
| 15 | // WithType sets the type of an actor. |
| 16 | func WithType(t ActorType) func(*Actor) { |
| 17 | return func(a *Actor) { |
| 18 | a.Type = t |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | // MockActor creates a new actor in the database. |
| 23 | func MockActor(t *testing.T, tx *gorm.DB, name, domain string, opts ...func(*Actor)) *Actor { |
| 24 | t.Helper() |
nothing calls this directly
no outgoing calls
no test coverage detected