Add more tests and refactor code parsing logic.

This commit is contained in:
Anna Rose Wiggins 2025-07-16 20:45:51 -04:00
parent a05dc9126d
commit fbb26fd93a
5 changed files with 143 additions and 81 deletions

View file

@ -12,6 +12,10 @@ type MakeRuleTargetsTests struct {
devs map[string]*evdev.InputDevice
}
func TestRunnerMakeRuleTargets(t *testing.T) {
suite.Run(t, new(MakeRuleTargetsTests))
}
func (t *MakeRuleTargetsTests) SetupSuite() {
t.devs = map[string]*evdev.InputDevice{
"test": {},
@ -141,7 +145,3 @@ func (t *MakeRuleTargetsTests) TestMakeRuleTargetRelaxis() {
t.NotNil(err)
})
}
func TestRunnerMakeRuleTargets(t *testing.T) {
suite.Run(t, new(MakeRuleTargetsTests))
}