MCPcopy Index your code
hub / github.com/SpectoLabs/hoverfly / ExportSimulation

Method ExportSimulation

functional-tests/functional_tests.go:246–257  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

244}
245
246func (this Hoverfly) ExportSimulation() v2.SimulationViewV5 {
247 reader := this.GetSimulation()
248 simulationBytes, err := ioutil.ReadAll(reader)
249 Expect(err).To(BeNil())
250
251 var simulation v2.SimulationViewV5
252
253 err = json.Unmarshal(simulationBytes, &simulation)
254 Expect(err).To(BeNil())
255
256 return simulation
257}
258
259func (this Hoverfly) GetCache() v2.CacheView {
260 req := sling.New().Get(this.adminUrl + "/api/v2/cache")

Calls 1

GetSimulationMethod · 0.95

Tested by

no test coverage detected