(t *testing.T)
| 71 | } |
| 72 | |
| 73 | func TestDefaultVersion(t *testing.T) { |
| 74 | c := aetesting.FakeSingleContext(t, "modules", "GetDefaultVersion", func(req *pb.GetDefaultVersionRequest, res *pb.GetDefaultVersionResponse) error { |
| 75 | if *req.Module != module { |
| 76 | t.Errorf("Module = %v, want %v", req.Module, module) |
| 77 | } |
| 78 | res.Version = proto.String(version) |
| 79 | return nil |
| 80 | }) |
| 81 | got, err := DefaultVersion(c, module) |
| 82 | if err != nil { |
| 83 | t.Fatalf("DefaultVersion: %v", err) |
| 84 | } |
| 85 | if got != version { |
| 86 | t.Errorf("Version = %v, want %v", got, version) |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | func TestStart(t *testing.T) { |
| 91 | c := aetesting.FakeSingleContext(t, "modules", "StartModule", func(req *pb.StartModuleRequest, res *pb.StartModuleResponse) error { |
nothing calls this directly
no test coverage detected
searching dependent graphs…