Add tests for AxisToButton rule. (WIP)

This commit is contained in:
Anna Rose Wiggins 2025-07-11 21:20:43 -04:00
parent 47fac539da
commit e93187b8a5
4 changed files with 76 additions and 14 deletions

View file

@ -0,0 +1,15 @@
package mappingrules
import (
"github.com/holoplot/go-evdev"
"github.com/stretchr/testify/mock"
)
type InputDeviceMock struct {
mock.Mock
}
func (m *InputDeviceMock) AbsInfos() (map[evdev.EvCode]evdev.AbsInfo, error) {
args := m.Called()
return args.Get(0).(map[evdev.EvCode]evdev.AbsInfo), args.Error(1)
}