summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormpeterv <mpeterval@gmail.com>2016-04-17 15:46:32 +0300
committermpeterv <mpeterval@gmail.com>2016-04-17 15:46:32 +0300
commit3cf3c6230d1a45ac08bbfab8a0a8416c9e7a4461 (patch)
treec7810cc004fcae9597f3b38a241a04c10b9ee4de
parent5a2b939cc5ccf284b67995980a4d66eace2977e9 (diff)
downloadluacov-3cf3c6230d1a45ac08bbfab8a0a8416c9e7a4461.tar.gz
Remove obsolete reporter example
luacov.reporter docs provide enough info.
-rw-r--r--examples/reporter/dummy.lua53
1 files changed, 0 insertions, 53 deletions
diff --git a/examples/reporter/dummy.lua b/examples/reporter/dummy.lua
deleted file mode 100644
index 36913c7..0000000
--- a/examples/reporter/dummy.lua
+++ /dev/null
@@ -1,53 +0,0 @@
---- Example of basic luacov reporter
---
--- Installation
--- copy this file to luacov/reporter/dummy.lua
---
--- Usage
--- call `luacov -r dummy`
-
-local luacov_reporter = require"luacov.reporter"
-
-local ReporterBase = luacov_reporter.ReporterBase
-
--- ReporterBase provide
--- write(str) - write string to output file
--- config() - return configuration table
-
-local DummyReporter = setmetatable({}, ReporterBase) do
-DummyReporter.__index = DummyReporter
-
-function DummyReporter:new(conf)
- ReporterBase.new(self, conf)
-end
-
-function DummyReporter:on_start()
-end
-
-function DummyReporter:on_new_file(filename)
-end
-
-function DummyReporter:on_empty_line(filename, lineno, line)
-end
-
-function DummyReporter:on_mis_line(filename, lineno, line)
-end
-
-function DummyReporter:on_hit_line(filename, lineno, line, hits)
-end
-
-function DummyReporter:on_end_file(filename, hits, miss)
-end
-
-function DummyReporter:on_end()
-end
-
-end
-
-local reporter = {}
-
-function reporter.report()
- return luacov_reporter.report(DummyReporter)
-end
-
-return reporter