@@ -59,11 +59,6 @@ test_that('FunctionReporter works end-to-end for typical use', {
5959 , info = " $pkg_name did not return expected package name" )
6060
6161 # # Node and Edge extraction work ##
62- # expect_silent({
63- # testObj$nodes
64- # testObj$edges
65- # })
66-
6762 expect_true(data.table :: is.data.table(testObj $ nodes ))
6863 expect_true(object = is.element(" node" , names(testObj $ nodes ))
6964 , info = " Node column created" )
@@ -74,8 +69,6 @@ test_that('FunctionReporter works end-to-end for typical use', {
7469
7570
7671 # # pkg_graph works ##
77-
78- # expect_silent({testObj$pkg_graph})
7972 expect_true({" AbstractGraph" %in% class(testObj $ pkg_graph )})
8073 expect_true({" DirectedGraph" %in% class(testObj $ pkg_graph )})
8174 expect_true({igraph :: is_igraph(testObj $ pkg_graph $ igraph )})
@@ -118,7 +111,6 @@ test_that('FunctionReporter works end-to-end for typical use', {
118111 )
119112
120113 # # graph_viz works ##
121- # expect_silent({testObj$graph_viz})
122114 expect_true(object = is.element(" visNetwork" , attributes(testObj $ graph_viz )))
123115 expect_equivalent(
124116 object = as.data.table(testObj $ graph_viz $ x $ nodes )[, .(id )]
@@ -136,15 +128,13 @@ test_that('FunctionReporter works end-to-end for typical use', {
136128
137129test_that(' FunctionReporter can directly generate pkg_graph' , {
138130 testObj <- FunctionReporter $ new()$ set_package(" baseballstats" )
139- # expect_silent(testObj$pkg_graph)
140131 expect_true(" AbstractGraph" %in% class(testObj $ pkg_graph ))
141132 expect_true(object = igraph :: is_igraph(testObj $ pkg_graph $ igraph )
142133 , info = " Package graph did not successfuly generate igraph object" )
143134})
144135
145136test_that(' FunctionReporter can directly generate graph_viz' , {
146137 testObj <- FunctionReporter $ new()$ set_package(" baseballstats" )
147- # expect_silent({testObj$graph_viz})
148138 expect_true(object = is.element(" visNetwork" , attributes(testObj $ graph_viz )))
149139})
150140
0 commit comments