Skip to content

Instantly share code, notes, and snippets.

@zoffixznet
Created April 14, 2016 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zoffixznet/2c1e8175dd9922e206f4e9465f622a73 to your computer and use it in GitHub Desktop.
Save zoffixznet/2c1e8175dd9922e206f4e9465f622a73 to your computer and use it in GitHub Desktop.
t/spec/S06-advanced/wrap.t ..
1..85
ok 1 - one event logged
ok 2 - it's foo
ok 3 - cannot upwrap a never-wrapped sub.
ok 4 - two events logged
ok 5 - wrapper before
ok 6 - wrapper after
ok 7 - logged the correct events
ok 8 - four events
ok 9 - additional wrapping takes effect
ok 10 - ... on top of initial wrapping
ok 11 - old wrapped sub was not destroyed
ok 12 - the original wrapper is still in effect
ok 13 - one events for unwrapped (should be back to original now)
ok 14 - got execpted value
ok 15 - out of order unwrapping gave right number of results
ok 16 - got execpted value from remaining wrapper
ok 17 - got execpted value from original sub
ok 18 - can't re-unwrap an already unwrapped sub
ok 19 - Basic sub.
ok 20 - Basic wrapping works
ok 21 - Recieved handle for unwrapping.
ok 22 - Function produces expected output after wrapping
ok 23 - unwrap the function
ok 24 - Function is no longer wrapped.
ok 25 - Sanity test.
ok 26 - Sanity test.
not ok 27 - Check that functions have a 'callwith' that works.
# Failed test 'Check that functions have a 'callwith' that works. '
# at t/spec/S06-advanced/wrap.t line 118
# Method 'callwith' not found for invocant of class 'Sub+{SoftRoutine}'
ok 28 - wrapping 1
ok 29 - Checking 1 level wrapping
ok 30 - wrapping 2
ok 31 - Checking 2 level wrapping
ok 32 - wrapping 3
ok 33 - Checking 3 level wrapping
ok 34 - wrapping 4
ok 35 - Checking 4 level wrapping
ok 36 - wrapping 5
ok 37 - Checking 5 level wrapping
ok 38 - wrapping 6
ok 39 - Checking 6 level wrapping
ok 40 - wrapping 7
ok 41 - Checking 7 level wrapping
ok 42 - wrapping 8
ok 43 - Checking 8 level wrapping
ok 44 - wrapping 9
ok 45 - Checking 9 level wrapping
ok 46 - wrapping 10
ok 47 - Checking 10 level wrapping
ok 48 - Sanity.
ok 49 - First wrapping lived
ok 50 - Middle wrapper sanity.
ok 51 - Second wraping lived
ok 52 - three wrappers sanity.
ok 53 - unwrap the middle wrapper.
ok 54 - First wrapper and final function only, middle removed.
ok 55 - Sanity
ok 56 - Check that function is wrapped.
not ok 57 - Wrap is now out of scope, should be back to normal.
# Failed test 'Wrap is now out of scope, should be back to normal.'
# at t/spec/S06-advanced/wrap.t line 162
# expected: 'xxx'
# got: 'yyy'
not ok 58 - Wrap is now out of scope, should be back to normal.
# Failed test 'Wrap is now out of scope, should be back to normal.'
# at t/spec/S06-advanced/wrap.t line 165
# expected: 'xxx'
# got: 'yyy'
1..2
ok 1 - '{nextsame}()' died
not ok 2 - right exception type (X::NoDispatcher)
# Failed test 'right exception type (X::NoDispatcher)'
# at /home/zoffix/rakudo/lib/.precomp/1FF3C6E4453EA39A79F918910E9867A667C62CEB.1460652382.09337/D5/D56364C5AF1F7B649298FB7D11E6322484712BD6 line 1
# Expected: X::NoDispatcher
# Got: X::ControlFlow::Return
# Exception message: Attempt to return outside of any Routine
# Looks like you failed 1 test of 2
not ok 59 - {nextsame}() dies properly
# Failed test '{nextsame}() dies properly'
# at t/spec/S06-advanced/wrap.t line 169
ok 60 - wrapper test variable is undefined
ok 61 - wrapped greet() works
ok 62 - wrapper sees lexical from time of wrap (greet)
ok 63 - wrapper test variable is undefined
ok 64 - wrapped meet() works
ok 65 - wrapper sees lexical from time of wrap (meet)
ok 66 - wrap worked (sanity)
ok 67 - could unwrap by calling .restore on the handle
ok 68 - multiple wrappings in a loop
ok 69 - can wrap a multi
ok 70 - Did foo, capture return
ok 71 - default works with wrapped accessor, capture return
ok 72 - BUILD binding works with wrapped accessor, capture return
ok 73 - assignment works with wrapped accessor, capture return
ok 74 - Did foo, return callsame
ok 75 - default works with wrapped accessor, return callsame
ok 76 - BUILD binding works with wrapped accessor, return callsame
ok 77 - assignment works with wrapped accessor, return callsame
ok 78 - Did foo, callsame
ok 79 - default works with wrapped accessor, callsame
ok 80 - BUILD binding works with wrapped accessor, callsame
ok 81 - assignment works with wrapped accessor, callsame
ok 82 - Did foo, nextsame
ok 83 - default works with wrapped accessor, nextsame
ok 84 - BUILD binding works with wrapped accessor, nextsame
ok 85 - assignment works with wrapped accessor, nextsame
# Looks like you failed 4 tests of 85
Dubious, test returned 4 (wstat 1024, 0x400)
Failed 4/85 subtests
Test Summary Report
-------------------
t/spec/S06-advanced/wrap.t (Wstat: 1024 Tests: 85 Failed: 4)
Failed tests: 27, 57-59
Non-zero exit status: 4
Files=1, Tests=85, 3 wallclock secs ( 0.03 usr 0.01 sys + 3.11 cusr 0.19 csys = 3.34 CPU)
Result: FAIL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment