()
| 1999 | } |
| 2000 | |
| 2001 | func testAutogeneratedFunction() { |
| 2002 | defer func() { |
| 2003 | if err := recover(); err == nil { |
| 2004 | panic("did not panic") |
| 2005 | } |
| 2006 | CallerInfo() |
| 2007 | }() |
| 2008 | t := struct { |
| 2009 | io.Closer |
| 2010 | }{} |
| 2011 | c := t |
| 2012 | c.Close() |
| 2013 | } |
| 2014 | |
| 2015 | func TestCallerInfoWithAutogeneratedFunctions(t *testing.T) { |
| 2016 | NotPanics(t, func() { |
no test coverage detected
searching dependent graphs…