MCPcopy
hub / github.com/robfig/cron / TestWithParser

Function TestWithParser

option_test.go:17–23  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

15}
16
17func TestWithParser(t *testing.T) {
18 var parser = NewParser(Dow)
19 c := New(WithParser(parser))
20 if c.parser != parser {
21 t.Error("expected provided parser")
22 }
23}
24
25func TestWithVerboseLogger(t *testing.T) {
26 var buf syncWriter

Callers

nothing calls this directly

Calls 4

NewParserFunction · 0.85
NewFunction · 0.85
WithParserFunction · 0.85
ErrorMethod · 0.65

Tested by

no test coverage detected