summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest/dns.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/custodian/protocoltest/dns.rb')
-rw-r--r--lib/custodian/protocoltest/dns.rb87
1 files changed, 46 insertions, 41 deletions
diff --git a/lib/custodian/protocoltest/dns.rb b/lib/custodian/protocoltest/dns.rb
index ab26a30..0fccb96 100644
--- a/lib/custodian/protocoltest/dns.rb
+++ b/lib/custodian/protocoltest/dns.rb
@@ -9,75 +9,80 @@
###
#
#
-class DNSTest < TestFactory
+module Custodian
+ module ProtocolTest
+ class DNSTest < TestFactory
- #
- # The line from which we were constructed.
- #
- attr_reader :line
+ #
+ # The line from which we were constructed.
+ #
+ attr_reader :line
- #
- # Constructor
- #
- def initialize( line )
- #
- # Save the line
- #
- @line = line
+ #
+ # Constructor
+ #
+ def initialize( line )
- end
+ #
+ # Save the line
+ #
+ @line = line
+ end
- #
- # Helper for development.
- #
- def to_s
- "dns-test - TODO."
- end
+ #
+ # Helper for development.
+ #
+ def to_s
+ "dns-test - TODO."
+ end
- #
- # Convert this class to JSON such that it may be serialized.
- #
- def to_json
- hash = { :line => @line }
- hash.to_json
- end
+ #
+ # Convert this class to JSON such that it may be serialized.
+ #
+ def to_json
+ hash = { :line => @line }
+ hash.to_json
+ end
- #
- # Run the test.
- #
- def run_test
- @error = "Not implemented"
- false
- end
+ #
+ # Run the test.
+ #
+ def run_test
+ @error = "Not implemented"
+ false
+ end
- #
- # If the test fails then report the error.
- #
- def error
- @error
- end
+
+ #
+ # If the test fails then report the error.
+ #
+ def error
+ @error
+ end
- register_test_type "dns"
+ register_test_type "dns"
+ end
+ end
end