MCPcopy Index your code
hub / github.com/codegangsta/gin / getCaller

Function getCaller

lib/helpers_test.go:10–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8)
9
10func getCaller() string {
11 _, file, line, ok := runtime.Caller(2)
12 if !ok {
13 return "Unrecoverable location"
14 }
15 return fmt.Sprintf("%s:%d", file, line)
16}
17
18/* Test Helpers */
19func expect(t *testing.T, a interface{}, b interface{}) {

Callers 2

expectFunction · 0.85
refuteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected