(t *testing.T)
| 88 | } |
| 89 | |
| 90 | func TestStart(t *testing.T) { |
| 91 | c := aetesting.FakeSingleContext(t, "modules", "StartModule", func(req *pb.StartModuleRequest, res *pb.StartModuleResponse) error { |
| 92 | if *req.Module != module { |
| 93 | t.Errorf("Module = %v, want %v", req.Module, module) |
| 94 | } |
| 95 | if *req.Version != version { |
| 96 | t.Errorf("Version = %v, want %v", req.Version, version) |
| 97 | } |
| 98 | return nil |
| 99 | }) |
| 100 | |
| 101 | err := Start(c, module, version) |
| 102 | if err != nil { |
| 103 | t.Fatalf("Start: %v", err) |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | func TestStop(t *testing.T) { |
| 108 | c := aetesting.FakeSingleContext(t, "modules", "StopModule", func(req *pb.StopModuleRequest, res *pb.StopModuleResponse) error { |
nothing calls this directly
no test coverage detected
searching dependent graphs…