type CodeLocation … func (codeLocation CodeLocation) String() string { … } func (codeLocation CodeLocation) ContentsOfLine() string { … } type codeLocationLocator … func (c *codeLocationLocator) addHelper(pc uintptr) { … } func (c *codeLocationLocator) hasHelper(name string) bool { … } func (c *codeLocationLocator) getCodeLocation(skip int) CodeLocation { … } var clLocator … // MarkAsHelper is used by GinkgoHelper to mark the caller (appropriately offset by skip)as a helper. You can use this directly if you need to provide an optional `skip` to mark functions further up the call stack as helpers. func MarkAsHelper(optionalSkip ...int) { … } func NewCustomCodeLocation(message string) CodeLocation { … } func NewCodeLocation(skip int) CodeLocation { … } func NewCodeLocationWithStackTrace(skip int) CodeLocation { … } // PruneStack removes references to functions that are internal to Ginkgo // and the Go runtime from a stack string and a certain number of stack entries // at the beginning of the stack. The stack string has the format // as returned by runtime/debug.Stack. The leading goroutine information is // optional and always removed if present. Beware that runtime/debug.Stack // adds itself as first entry, so typically skip must be >= 1 to remove that // entry. func PruneStack(fullStackTrace string, skip int) string { … }