MCPcopy Create free account
hub / github.com/golang/appengine / TestStart

Function TestStart

module/module_test.go:90–105  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

88}
89
90func 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
107func TestStop(t *testing.T) {
108 c := aetesting.FakeSingleContext(t, "modules", "StopModule", func(req *pb.StopModuleRequest, res *pb.StopModuleResponse) error {

Callers

nothing calls this directly

Calls 2

FakeSingleContextFunction · 0.92
StartFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…