MCPcopy
hub / github.com/expr-lang/expr / testAutogeneratedFunction

Function testAutogeneratedFunction

internal/testify/assert/assertions_test.go:2001–2013  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1999}
2000
2001func 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
2015func TestCallerInfoWithAutogeneratedFunctions(t *testing.T) {
2016 NotPanics(t, func() {

Calls 2

CallerInfoFunction · 0.85
CloseMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…