From bee953400bae23f82ae021035aae0d784f6217d2 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 9 Aug 2015 12:20:02 -0400 Subject: Rename .statements and .excluded_statements to .lines and .excluded_lines --- tests/plugin1.py | 5 +---- tests/plugin2.py | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/plugin1.py b/tests/plugin1.py index 5340e40d..af4dfc52 100644 --- a/tests/plugin1.py +++ b/tests/plugin1.py @@ -42,12 +42,9 @@ class FileTracer(coverage.FileTracer): class FileReporter(coverage.FileReporter): """Dead-simple FileReporter.""" - def statements(self): + def lines(self): return set([105, 106, 107, 205, 206, 207]) - def excluded_statements(self): - return set([]) - def coverage_init(reg, options): # pylint: disable=unused-argument """Called by coverage to initialize the plugins here.""" diff --git a/tests/plugin2.py b/tests/plugin2.py index 226d4e55..3bdfbdfd 100644 --- a/tests/plugin2.py +++ b/tests/plugin2.py @@ -37,7 +37,7 @@ class RenderFileTracer(coverage.FileTracer): class FileReporter(coverage.FileReporter): """A goofy file reporter.""" - def statements(self): + def lines(self): # Goofy test arrangement: claim that the file has as many lines as the # number in its name. num = os.path.basename(self.filename).split(".")[0].split("_")[1] -- cgit v1.2.1