(t *testing.T)
| 105 | } |
| 106 | |
| 107 | func TestStop(t *testing.T) { |
| 108 | c := aetesting.FakeSingleContext(t, "modules", "StopModule", func(req *pb.StopModuleRequest, res *pb.StopModuleResponse) error { |
| 109 | version := "test-version" |
| 110 | module := "test-module" |
| 111 | if *req.Module != module { |
| 112 | t.Errorf("Module = %v, want %v", req.Module, module) |
| 113 | } |
| 114 | if *req.Version != version { |
| 115 | t.Errorf("Version = %v, want %v", req.Version, version) |
| 116 | } |
| 117 | return nil |
| 118 | }) |
| 119 | |
| 120 | err := Stop(c, module, version) |
| 121 | if err != nil { |
| 122 | t.Fatalf("Stop: %v", err) |
| 123 | } |
| 124 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…