MCPcopy Create free account
hub / github.com/conforma/cli / Enabled

Method Enabled

internal/tracing/type.go:81–89  ·  view source on GitHub ↗

Enabled returns true if one of the provided tracing categories is enabled

(categories ...Trace)

Source from the content-addressed store, hash-verified

79
80// Enabled returns true if one of the provided tracing categories is enabled
81func (t Trace) Enabled(categories ...Trace) bool {
82 for _, c := range categories {
83 if t&c == c {
84 return true
85 }
86 }
87
88 return false
89}
90
91// String returns a comma separated list of enabled categories
92func (t Trace) String() string {

Callers 1

StringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected