Sha256: ce49ee0f43a39210f686a145c37af4d857bf88b75de7c219464ec25a49134fda

Contents?: true

Size: 1.1 KB

Versions: 101

Compression:

Stored size: 1.1 KB

Contents

module OrigenTesters
  module IGXLBasedTester
    class Base
      class TestInstances
        # Custom Test Instance library
        class CustomTil
          # Returns the test_instances object for the current flow
          attr_reader :test_instances
          attr_reader :definitions

          def initialize(test_instances, definitions)
            @test_instances = test_instances
            @definitions = definitions
          end

          def method_missing(method, *args, &block)
            if definitions[method]
              name = args.shift
              ti = platform::CustomTestInstance.new name, methods: definitions[method].dup,
                                                          attrs:   (args.first || {}),
                                                          type:    method,
                                                          library: self
              test_instances.add(nil, ti)
              ti
            else
              super
            end
          end

          def platform
            test_instances.platform
          end
        end
      end
    end
  end
end

Version data entries

101 entries across 101 versions & 1 rubygems

Version Path
origen_testers-0.7.11 lib/origen_testers/igxl_based_tester/base/test_instances/custom_til.rb
origen_testers-0.7.10 lib/origen_testers/igxl_based_tester/base/test_instances/custom_til.rb
origen_testers-0.7.9 lib/origen_testers/igxl_based_tester/base/test_instances/custom_til.rb
origen_testers-0.7.8 lib/origen_testers/igxl_based_tester/base/test_instances/custom_til.rb
origen_testers-0.7.7 lib/origen_testers/igxl_based_tester/base/test_instances/custom_til.rb
origen_testers-0.7.6 lib/origen_testers/igxl_based_tester/base/test_instances/custom_til.rb
origen_testers-0.7.5 lib/origen_testers/igxl_based_tester/base/test_instances/custom_til.rb
origen_testers-0.7.4 lib/origen_testers/igxl_based_tester/base/test_instances/custom_til.rb
origen_testers-0.7.3 lib/origen_testers/igxl_based_tester/base/test_instances/custom_til.rb
origen_testers-0.7.2 lib/origen_testers/igxl_based_tester/base/test_instances/custom_til.rb
origen_testers-0.7.1 lib/origen_testers/igxl_based_tester/base/test_instances/custom_til.rb
origen_testers-0.7.0 lib/origen_testers/igxl_based_tester/base/test_instances/custom_til.rb
origen_testers-0.7.0.pre0 lib/origen_testers/igxl_based_tester/base/test_instances/custom_til.rb
origen_testers-0.6.2 lib/origen_testers/igxl_based_tester/base/test_instances/custom_til.rb
origen_testers-0.6.1 lib/origen_testers/igxl_based_tester/base/test_instances/custom_til.rb
origen_testers-0.6.0 lib/origen_testers/igxl_based_tester/base/test_instances/custom_til.rb
origen_testers-0.5.7 lib/origen_testers/igxl_based_tester/base/test_instances/custom_til.rb
origen_testers-0.5.6 lib/origen_testers/igxl_based_tester/base/test_instances/custom_til.rb
origen_testers-0.5.5 lib/origen_testers/igxl_based_tester/base/test_instances/custom_til.rb
origen_testers-0.5.4 lib/origen_testers/igxl_based_tester/base/test_instances/custom_til.rb