MCPcopy Create free account
hub / github.com/DoNewsCode/core / IsZero

Method IsZero

config/time.go:18–20  ·  view source on GitHub ↗

IsZero returns true if the Duration is the zero value.

()

Source from the content-addressed store, hash-verified

16
17// IsZero returns true if the Duration is the zero value.
18func (d Duration) IsZero() bool {
19 return d.Duration == 0
20}
21
22// MarshalYAML implements yaml.Marshaler
23func (d Duration) MarshalYAML() (interface{}, error) {

Callers 7

TestDuration_IsZeroFunction · 0.95
TimeoutIfOverlapFunction · 0.80
TestGetCurrentScheduleFunction · 0.80
TestGetNextScheduleFunction · 0.80
RunMethod · 0.80
dialTimeoutMethod · 0.80
provideGormDBFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestDuration_IsZeroFunction · 0.76
TestGetCurrentScheduleFunction · 0.64
TestGetNextScheduleFunction · 0.64