Sha256: 440f0886f8b7fd8c5ebf7121280cd69780d69e5d25c840d03bdf49687d6a3e17

Contents?: true

Size: 1.01 KB

Versions: 79

Compression:

Stored size: 1.01 KB

Contents

module OrigenTesters
  module SmartestBasedTester
    class Base
      class TestMethods
        # Base class of all test method libraries
        class BaseTml
          # Returns the test_methods object for the current flow
          attr_reader :test_methods

          def initialize(test_methods)
            @test_methods = test_methods
          end

          def method_missing(method, *args, &block)
            if definitions[method]
              m = platform::TestMethod.new methods: definitions[method].dup,
                                           attrs:   (args.first || {}),
                                           type:    method,
                                           library: self
              test_methods.add(m)
              m
            else
              super
            end
          end

          def platform
            Origen.interface.platform
          end

          def definitions
            @definitions || self.class::TEST_METHODS
          end
        end
      end
    end
  end
end

Version data entries

79 entries across 79 versions & 1 rubygems

Version Path
origen_testers-0.45.4 lib/origen_testers/smartest_based_tester/base/test_methods/base_tml.rb
origen_testers-0.45.3 lib/origen_testers/smartest_based_tester/base/test_methods/base_tml.rb
origen_testers-0.45.2 lib/origen_testers/smartest_based_tester/base/test_methods/base_tml.rb
origen_testers-0.45.1 lib/origen_testers/smartest_based_tester/base/test_methods/base_tml.rb
origen_testers-0.45.0 lib/origen_testers/smartest_based_tester/base/test_methods/base_tml.rb
origen_testers-0.44.1 lib/origen_testers/smartest_based_tester/base/test_methods/base_tml.rb
origen_testers-0.44.0 lib/origen_testers/smartest_based_tester/base/test_methods/base_tml.rb
origen_testers-0.43.0 lib/origen_testers/smartest_based_tester/base/test_methods/base_tml.rb
origen_testers-0.42.0 lib/origen_testers/smartest_based_tester/base/test_methods/base_tml.rb
origen_testers-0.41.0 lib/origen_testers/smartest_based_tester/base/test_methods/base_tml.rb
origen_testers-0.40.0 lib/origen_testers/smartest_based_tester/base/test_methods/base_tml.rb
origen_testers-0.31.0 lib/origen_testers/smartest_based_tester/base/test_methods/base_tml.rb
origen_testers-0.30.0 lib/origen_testers/smartest_based_tester/base/test_methods/base_tml.rb
origen_testers-0.21.0 lib/origen_testers/smartest_based_tester/base/test_methods/base_tml.rb
origen_testers-0.20.0 lib/origen_testers/smartest_based_tester/base/test_methods/base_tml.rb
origen_testers-0.19.3 lib/origen_testers/smartest_based_tester/base/test_methods/base_tml.rb
origen_testers-0.19.2 lib/origen_testers/smartest_based_tester/base/test_methods/base_tml.rb
origen_testers-0.19.0 lib/origen_testers/smartest_based_tester/base/test_methods/base_tml.rb
origen_testers-0.18.0 lib/origen_testers/smartest_based_tester/base/test_methods/base_tml.rb
origen_testers-0.17.0 lib/origen_testers/smartest_based_tester/base/test_methods/base_tml.rb