diff options
Diffstat (limited to 'tests/plugin1.py')
-rw-r--r-- | tests/plugin1.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/plugin1.py b/tests/plugin1.py index f9da35c8..c28b886f 100644 --- a/tests/plugin1.py +++ b/tests/plugin1.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """A plugin for test_plugins.py to import.""" import os.path @@ -44,3 +47,8 @@ class FileReporter(coverage.plugin.FileReporter): def excluded_statements(self): return set([]) + + +def coverage_init(reg, options): # pylint: disable=unused-argument + """Called by coverage to initialize the plugins here.""" + reg.add_file_tracer(Plugin()) |