MCPcopy Create free account
hub / github.com/corestoreio/pkg / IsValid

Method IsValid

config/path.go:407–449  ·  view source on GitHub ↗

IsValid checks for valid configuration path. Returns nil on success. Configuration path attribute can have only three groups of [a-zA-Z0-9_] characters split by '/'. Minimal length per part 2 characters. Case sensitive. Error behaviour: NotValid or Empty

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

MakePathWithScopeFunction · 0.95
AppendFQMethod · 0.95
ParseMethod · 0.95
ParseStringsMethod · 0.95
UnmarshalTextMethod · 0.95
UnmarshalBinaryMethod · 0.95
LevelMethod · 0.95
PartMethod · 0.95
TestPath_IsValid1Function · 0.95
TestPath_IsValid2Function · 0.95
getValueMethod · 0.45
ObjectsAreEqualValuesFunction · 0.45

Calls 3

SeparatorsMethod · 0.95
StringMethod · 0.65
IndexMethod · 0.65

Tested by 9

TestPath_IsValid1Function · 0.76
TestPath_IsValid2Function · 0.76
TestNotKeyNotFoundErrorFunction · 0.36
TestScoped_IsValidFunction · 0.36
TestScopedServicePathFunction · 0.36
TestWithLRUFunction · 0.36
TestRoute_IsValidFunction · 0.36
BenchmarkPath_ValidateFunction · 0.36