MCPcopy Create free account
hub / github.com/cel-expr/cel-go / String

Method String

ext/formatting_v2.go:458–465  ·  view source on GitHub ↗

String implements formatStringInterpolatorV2.String.

(arg ref.Val)

Source from the content-addressed store, hash-verified

456
457// String implements formatStringInterpolatorV2.String.
458func (c *stringFormatCheckerV2) String(arg ref.Val) (string, error) {
459 formatArg := c.args[c.currArgIndex]
460 valid, badID := c.verifyString(formatArg)
461 if !valid {
462 return "", stringFormatErrorV2(badID, c.typeOf(badID).TypeName())
463 }
464 return "", nil
465}
466
467// Decimal implements formatStringInterpolatorV2.Decimal.
468func (c *stringFormatCheckerV2) Decimal(arg ref.Val) (string, error) {

Callers

nothing calls this directly

Calls 4

verifyStringMethod · 0.95
typeOfMethod · 0.95
stringFormatErrorV2Function · 0.85
TypeNameMethod · 0.65

Tested by

no test coverage detected