MCPcopy Index your code
hub / github.com/Shopify/go-lua / compareClosures

Function compareClosures

parser_test.go:105–108  ·  view source on GitHub ↗
(t *testing.T, a, b *luaClosure)

Source from the content-addressed store, hash-verified

103}
104
105func compareClosures(t *testing.T, a, b *luaClosure) {
106 expectEqual(t, a.upValueCount(), b.upValueCount(), "upvalue count")
107 comparePrototypes(t, a.prototype, b.prototype)
108}
109
110func comparePrototypes(t *testing.T, a, b *prototype) {
111 expectEqual(t, a.isVarArg, b.isVarArg, "var arg")

Callers 2

TestParserFunction · 0.85
protectedTestParserFunction · 0.85

Calls 3

expectEqualFunction · 0.85
comparePrototypesFunction · 0.85
upValueCountMethod · 0.65

Tested by

no test coverage detected