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

Function TestStop

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

Source from the content-addressed store, hash-verified

105}
106
107func 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}

Callers

nothing calls this directly

Calls 2

FakeSingleContextFunction · 0.92
StopFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…