-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
42 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
test_that("Highlight functions without errors", { | ||
test_that("Highlight node functions without errors", { | ||
graph <- create_test_pathway() | ||
expect_error( graph |> mutate(hl=highlight_set_nodes(c("hsa:51428"))), NA) | ||
expect_error( graph |> activate("edges") |> | ||
expect_error(graph |> mutate(hl=highlight_set_nodes(c("hsa:51428"))), NA) | ||
}) | ||
test_that("Highlight edge functions without errors", { | ||
graph <- create_test_pathway() | ||
expect_error(graph |> activate("edges") |> | ||
mutate(hl=highlight_set_edges(c("degradation"), | ||
name="subtype_name")), NA) | ||
}) | ||
test_that("Highlight module functions without errors", { | ||
graph <- create_test_pathway() | ||
mo <- create_test_module() | ||
expect_error(graph <- graph |> highlight_module(mo), NA) | ||
}) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
test_that("Module parsing without errors", { | ||
test_that("Module parsing to text and network without errors", { | ||
expect_error( create_test_module(), NA) | ||
mod <- create_test_module() | ||
|
||
## Text parsing | ||
expect_error( module_text(mod), NA) | ||
expect_error( module_text(mod) |> plot_module_text(), NA) | ||
mod <- module("M00004") | ||
expect_error( module_text(mod), NA) | ||
expect_error( module_text(mod) |> plot_module_text(), NA) | ||
|
||
## Network parsing | ||
expect_error( obtain_sequential_module_definition(mod) |> | ||
plot_module_blocks(), NA) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
test_that("Pathway parsing without errors", { | ||
test_that("Generate test pathway without errors", { | ||
expect_error( create_test_pathway(), NA) | ||
}) | ||
test_that("Pathway downloading without errors", { | ||
expect_error( pathway("hsa04110"), NA) | ||
}) | ||
test_that("process_line without errors", { | ||
expect_error( create_test_pathway(line=TRUE) |> process_line(), NA) | ||
}) | ||
test_that("process_reaction without errors", { | ||
expect_error( create_test_pathway(line=TRUE) |> process_reaction(), NA) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters