Debian Codegraph @

test/instrument/class/send.t

raw
1 Send instrumented.
2
3 $ bash ../test.sh <<'EOF'
4 > let _ = (object method foo = () end)#foo
5 > EOF
6 let _ =
7 ___bisect_post_visit___ 1
8 (object
9 method foo =
10 ___bisect_visit___ 0;
11 ()
12 end)
13 #foo
14
15
16 Not instrumented in tail position.
17
18 $ bash ../test.sh <<'EOF'
19 > let _ = fun () -> (object method foo = () end)#foo
20 > EOF
21 let _ =
22 fun () ->
23 ___bisect_visit___ 1;
24 (object
25 method foo =
26 ___bisect_visit___ 0;
27 ()
28 end)
29 #foo
30
31
32 Not instrumented inside a surrounding application expression.
33
34 $ bash ../test.sh << 'EOF'
35 > let _ = (object method foo () = () end)#foo ()
36 > EOF
37 let _ =
38 ___bisect_post_visit___ 1
39 ((object
40 method foo () =
41 ___bisect_visit___ 0;
42 ()
43 end)
44 #foo
45 ())