-
Notifications
You must be signed in to change notification settings - Fork 3
/
integrant_test.go
37 lines (29 loc) · 1.29 KB
/
integrant_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package engine_test
import (
"github.com/autovelop/playthos"
// "testing"
)
// TODO(F): Write integrant tests
type MockIntegrant struct {
engine.Integrant
}
func (m *MockIntegrant) InitIntegrant() {}
func (m *MockIntegrant) AddIntegrant(engine.IntegrantRoutine) {}
func (m *MockIntegrant) Destroy() {}
type MockListenerIntegrant struct {
engine.Integrant
}
func (m *MockListenerIntegrant) InitIntegrant() {}
func (m *MockListenerIntegrant) AddIntegrant(engine.IntegrantRoutine) {}
func (m *MockListenerIntegrant) Destroy() {}
func (m *MockListenerIntegrant) On(int, func(...int)) {}
func (m *MockListenerIntegrant) IsSet(int) bool { return false }
func (m *MockListenerIntegrant) Emit(int, int) {}
type MockPlatformerIntegrant struct {
engine.Integrant
}
func (m *MockPlatformerIntegrant) InitIntegrant() {}
func (m *MockPlatformerIntegrant) AddIntegrant(engine.IntegrantRoutine) {}
func (m *MockPlatformerIntegrant) Destroy() {}
func (m *MockPlatformerIntegrant) LoadAsset(string) {}
func (m *MockPlatformerIntegrant) Asset(string) []byte { return []byte{} }