Files
openamt/pkg/amtrpc/fake.go
Jacob Payne ce291e1a98 init commit
2023-03-21 10:30:41 -07:00

17 lines
282 B
Go

//go:build fake
package amtrpc
type AMTRPC struct {
MockAccessStatus func() int
MockExec func(string) (string, int)
}
func (f AMTRPC) CheckAccess() int {
return f.MockAccessStatus()
}
func (f AMTRPC) Exec(command string) (string, int) {
return f.MockExec(command)
}