MCPcopy
hub / github.com/mcuadros/ofelia / NewSave

Function NewSave

middlewares/save.go:19–26  ·  view source on GitHub ↗

NewSave returns a Save middleware if the given configuration is not empty

(c *SaveConfig)

Source from the content-addressed store, hash-verified

17
18// NewSave returns a Save middleware if the given configuration is not empty
19func NewSave(c *SaveConfig) core.Middleware {
20 var m core.Middleware
21 if !IsEmpty(c) {
22 m = &Save{*c}
23 }
24
25 return m
26}
27
28// Save the save middleware saves to disk a dump of the stdout and stderr after
29// every execution of the process

Callers 9

buildMiddlewaresMethod · 0.92
buildMiddlewaresMethod · 0.92
buildMiddlewaresMethod · 0.92
buildMiddlewaresMethod · 0.92
TestNewSlackEmptyMethod · 0.85
TestRunSuccessMethod · 0.85
TestRunSuccessOnErrorMethod · 0.85
TestSensitiveDataMethod · 0.85

Calls 1

IsEmptyFunction · 0.85

Tested by 4

TestNewSlackEmptyMethod · 0.68
TestRunSuccessMethod · 0.68
TestRunSuccessOnErrorMethod · 0.68
TestSensitiveDataMethod · 0.68