From 3b3131d63588aa66234aed52e6ab3004e54bf955 Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 6 Mar 2014 23:09:59 +0000 Subject: [PATCH] Add class names to unittest.lua NSEdoc --- nselib/unittest.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nselib/unittest.lua b/nselib/unittest.lua index 0bd2187ae..d07ab8c0a 100644 --- a/nselib/unittest.lua +++ b/nselib/unittest.lua @@ -180,6 +180,7 @@ TestSuite = { --- Creates a new TestSuite object -- + -- @name TestSuite.new -- @return TestSuite object new = function(self) local o = {} @@ -190,14 +191,17 @@ TestSuite = { end, --- Set up test environment. Override this. + -- @name TestSuite.setup setup = function(self) return true end, --- Tear down test environment. Override this. + -- @name TestSuite.teardown teardown = function(self) return true end, --- Add a test. + -- @name TestSuite.add_test -- @param test Function that will be called with the TestSuite object as its only parameter. -- @param description A description of the test being run add_test = function(self, test, description) @@ -206,6 +210,7 @@ TestSuite = { --- Run tests. -- Runs all tests in the TestSuite, and returns the number of failures. + -- @name TestSuite.__call -- @return failures The number of tests that failed -- @return tests The number of tests run __call = function(self)