summaryrefslogtreecommitdiff
path: root/test/gjs-test-coverage.cpp
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2014-02-03 14:11:52 -0500
committerJasper St. Pierre <jstpierre@mecheye.net>2014-09-30 14:07:32 -0600
commit58abf3bd48e3ee590176574f35e2e5f201be28cd (patch)
tree60b10b6489d19253c7d578e94af1998b1cc0f306 /test/gjs-test-coverage.cpp
parent7ee02940a0dabd672028c2cd23ffe6886d9e670f (diff)
downloadgjs-58abf3bd48e3ee590176574f35e2e5f201be28cd.tar.gz
coverage: Get the list of covered files from coverage.js
Diffstat (limited to 'test/gjs-test-coverage.cpp')
-rw-r--r--test/gjs-test-coverage.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/test/gjs-test-coverage.cpp b/test/gjs-test-coverage.cpp
index c38b0e73..462c0012 100644
--- a/test/gjs-test-coverage.cpp
+++ b/test/gjs-test-coverage.cpp
@@ -1138,13 +1138,9 @@ test_no_hits_to_coverage_data_for_unexecuted(gpointer fixture_data,
fixture->output_file_directory,
NULL);
- /* More than one assert per test is bad, but we are testing interlinked concepts */
- g_assert(coverage_data_contains_value_for_key(coverage_data_contents,
- "LF:",
- "1"));
- g_assert(coverage_data_contains_value_for_key(coverage_data_contents,
- "LH:",
- "0"));
+ /* No files were executed, so the coverage data is empty. */
+ g_assert_cmpstr(coverage_data_contents, ==, "");
+
g_free(coverage_data_contents);
}