MCPcopy
hub / github.com/pelletier/go-toml / formatMsgAndArgs

Function formatMsgAndArgs

internal/assert/assertions.go:104–113  ·  view source on GitHub ↗
(msg string, args ...any)

Source from the content-addressed store, hash-verified

102}
103
104func formatMsgAndArgs(msg string, args ...any) string {
105 if len(args) == 0 {
106 return msg
107 }
108 format, ok := args[0].(string)
109 if !ok {
110 panic("message argument must be a fmt string")
111 }
112 return fmt.Sprintf(format, args[1:]...)
113}
114
115func diff(expected, actual any) string {
116 lines := []string{

Callers 8

TrueFunction · 0.85
FalseFunction · 0.85
EqualFunction · 0.85
ErrorFunction · 0.85
NoErrorFunction · 0.85
PanicsFunction · 0.85
ZeroFunction · 0.85
NotZeroFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…