Debian Codegraph @

tests/testthat/fixtures/oteltest/R/oteltest.R

raw
1 #' @export
2
3 runme <- function() {
4 message("runme in")
5 child1()
6 object[["notthis"]]()
7 child2()
8 message("runme out")
9 }
10
11 child1 <- function() {
12 message(" child1 in")
13 grandchild1()
14 grandchild2()
15 message(" child1 out")
16 }
17
18 child2 <- function() {
19 message(" child2 in")
20 grandchild1()
21 grandchild2()
22 message(" child2 out")
23 }
24
25 grandchild1 <- function() {
26 message(" grandchild1")
27 }
28
29 grandchild2 <- function() {
30 message(" grandchild2")
31 }
32
33 object <- list(
34 1,
35 2,
36 3,
37 notthis = function() {
38 # this won't be instrumented, not a top-level package object
39 message(" notthis")
40 }
41 )