MCPcopy
hub / github.com/gopherjs/gopherjs / TestIssue22073

Function TestIssue22073

compiler/natives/src/reflect/reflect_test.go:145–160  ·  view source on GitHub ↗

TODO: Fix this. See https://github.com/gopherjs/gopherjs/issues/763.

(t *testing.T)

Source from the content-addressed store, hash-verified

143
144// TODO: Fix this. See https://github.com/gopherjs/gopherjs/issues/763.
145func TestIssue22073(t *testing.T) {
146 m := ValueOf(NonExportedFirst(0)).Method(0)
147
148 if got := m.Type().NumOut(); got != 0 {
149 t.Errorf("NumOut: got %v, want 0", got)
150 }
151
152 // TODO: Fix this. The call below fails with:
153 //
154 // var $call = function(fn, rcvr, args) { return fn.apply(rcvr, args); };
155 // ^
156 // TypeError: Cannot read property 'apply' of undefined
157
158 // Shouldn't panic.
159 // m.Call(nil)
160}
161
162func TestCallReturnsEmpty(t *testing.T) {
163 t.Skip("test uses runtime.SetFinalizer, which is not supported by GopherJS")

Callers

nothing calls this directly

Calls 3

ValueOfFunction · 0.70
TypeMethod · 0.65
MethodMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…