Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/SpectoLabs/hoverfly
/ SetBinary
Method
SetBinary
core/middleware/middleware.go:93–96 ·
view source on GitHub ↗
(binary string)
Source
from the content-addressed store, hash-verified
91
}
92
93
func
(this *Middleware) SetBinary(binary string) error {
94
this.Binary = binary
95
return
nil
96
}
97
98
func
(this *Middleware) SetRemote(remoteUrl string) error {
99
this.Remote = remoteUrl
Callers
15
SetMiddleware
Method · 0.95
Test_Middleware_SetBinary_SetsBinaryIfItCanRunIt
Function · 0.95
Test_Middleware_SetBinary_SetsStringToEmpty
Function · 0.95
Test_Middleware_Execute_RunsMiddlewareCorrectly
Function · 0.95
TestChangeBodyMiddleware
Function · 0.95
TestMalformedRequestResponsePairWithMiddleware
Function · 0.95
TestReflectBody
Function · 0.95
ConvertToNewMiddleware
Function · 0.95
Test_Hoverfly_GetMiddleware_ReturnsCorrectValuesFromMiddleware
Function · 0.80
Test_Hoverfly_GetMiddleware_ReturnsBinaryIfJustBinarySet
Function · 0.80
Test_Hoverfly_SetMiddleware_WillErrorIfGivenScriptAndNoBinaryAndWillNotChangeMiddleware
Function · 0.80
Test_Hoverfly_SetMiddleware_WillDeleteMiddlewareSettingsIfEmptyBinaryAndScriptAndRemote
Function · 0.80
Calls
no outgoing calls
Tested by
15
Test_Middleware_SetBinary_SetsBinaryIfItCanRunIt
Function · 0.76
Test_Middleware_SetBinary_SetsStringToEmpty
Function · 0.76
Test_Middleware_Execute_RunsMiddlewareCorrectly
Function · 0.76
TestChangeBodyMiddleware
Function · 0.76
TestMalformedRequestResponsePairWithMiddleware
Function · 0.76
TestReflectBody
Function · 0.76
Test_Hoverfly_GetMiddleware_ReturnsCorrectValuesFromMiddleware
Function · 0.64
Test_Hoverfly_GetMiddleware_ReturnsBinaryIfJustBinarySet
Function · 0.64
Test_Hoverfly_SetMiddleware_WillErrorIfGivenScriptAndNoBinaryAndWillNotChangeMiddleware
Function · 0.64
Test_Hoverfly_SetMiddleware_WillDeleteMiddlewareSettingsIfEmptyBinaryAndScriptAndRemote
Function · 0.64
Test_Hoverfly_processRequest_CanUseMiddlewareToSynthesizeResponse
Function · 0.64
Test_Hoverfly_processRequest_CanModifyResponse
Function · 0.64