From 65903bd4143c848efbf8ebc348646898f4120c44 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Thu, 26 Sep 2019 07:39:26 +0800 Subject: [PATCH] MDL-66722 grade: Add coverage files Part of MDL-66074 --- grade/grading/form/guide/tests/coverage.php | 41 ++++++++++++++++++++ grade/grading/form/rubric/tests/coverage.php | 41 ++++++++++++++++++++ grade/grading/tests/coverage.php | 41 ++++++++++++++++++++ 3 files changed, 123 insertions(+) create mode 100644 grade/grading/form/guide/tests/coverage.php create mode 100644 grade/grading/form/rubric/tests/coverage.php create mode 100644 grade/grading/tests/coverage.php diff --git a/grade/grading/form/guide/tests/coverage.php b/grade/grading/form/guide/tests/coverage.php new file mode 100644 index 00000000000..cdb8005af5b --- /dev/null +++ b/grade/grading/form/guide/tests/coverage.php @@ -0,0 +1,41 @@ +. + +defined('MOODLE_INTERNAL') || die(); + +/** + * Coverage information for the gradingform_guide plugin. + * + * @package gradingform_guide + * @category test + * @copyright 2019 Andrew Nicols + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +/** + * Coverage information for the gradingform_guide plugin. + * + * @package gradingform_guide + * @copyright 2019 Andrew Nicols + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +return new class extends phpunit_coverage_info { + /** @var array The list of folders relative to the plugin root to whitelist in coverage generation. */ + protected $whitelistfolders = [ + 'classes', + 'tests/generator', + ]; +}; diff --git a/grade/grading/form/rubric/tests/coverage.php b/grade/grading/form/rubric/tests/coverage.php new file mode 100644 index 00000000000..5a522a0f903 --- /dev/null +++ b/grade/grading/form/rubric/tests/coverage.php @@ -0,0 +1,41 @@ +. + +defined('MOODLE_INTERNAL') || die(); + +/** + * Coverage information for the gradingform_rubric plugin. + * + * @package gradingform_rubric + * @category test + * @copyright 2019 Andrew Nicols + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +/** + * Coverage information for the gradingform_rubric plugin. + * + * @package gradingform_rubric + * @copyright 2019 Andrew Nicols + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +return new class extends phpunit_coverage_info { + /** @var array The list of folders relative to the plugin root to whitelist in coverage generation. */ + protected $whitelistfolders = [ + 'classes', + 'tests/generator', + ]; +}; diff --git a/grade/grading/tests/coverage.php b/grade/grading/tests/coverage.php new file mode 100644 index 00000000000..97c219b70dd --- /dev/null +++ b/grade/grading/tests/coverage.php @@ -0,0 +1,41 @@ +. + +defined('MOODLE_INTERNAL') || die(); + +/** + * Coverage information for the core_grading subsystem. + * + * @package core_grading + * @category test + * @copyright 2019 Andrew Nicols + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +/** + * Coverage information for the core_grading subsystem. + * + * @package core_grading + * @copyright 2019 Andrew Nicols + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +return new class extends phpunit_coverage_info { + /** @var array The list of folders relative to the plugin root to whitelist in coverage generation. */ + protected $whitelistfolders = [ + 'classes', + 'tests/generator', + ]; +};