No need to add as field struct

This commit is contained in:
Jakub Zimny
2025-01-20 23:39:53 +01:00
parent 5b43c79783
commit 98e3583c6f

View File

@@ -13,7 +13,6 @@ type MockState struct {
EqualsError bool
GetReturn EntityState
GetError bool
AllEntities []EntityState
}
func (s MockState) AfterSunrise(_ ...DurationString) bool {
@@ -35,7 +34,7 @@ func (s MockState) Get(eid string) (EntityState, error) {
return s.GetReturn, nil
}
func (s MockState) List() ([]EntityState, error) {
return s.AllEntities, nil
return []EntityState{}, nil
}
func (s MockState) Equals(eid, state string) (bool, error) {
if s.EqualsError {