MCPcopy
hub / github.com/etcd-io/bbolt / truncDuration

Function truncDuration

internal/btesting/btesting.go:219–221  ·  view source on GitHub ↗
(d time.Duration)

Source from the content-addressed store, hash-verified

217}
218
219func truncDuration(d time.Duration) string {
220 return regexp.MustCompile(`^(\d+)(\.\d+)`).ReplaceAllString(d.String(), "$1")
221}
222
223func (db *DB) strictModeEnabledDefault() {
224 strictModeEnabled := strings.ToLower(os.Getenv(TestEnableStrictMode))

Callers 1

PrintStatsMethod · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected