Class: Hecks::Behaviors::TestCase

Inherits:
Struct
  • Object
show all
Defined in:
lib/hecks/behaviors/ir.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



14
15
16
# File 'lib/hecks/behaviors/ir.rb', line 14

def description
  @description
end

#expectObject

Returns the value of attribute expect

Returns:

  • (Object)

    the current value of expect



14
15
16
# File 'lib/hecks/behaviors/ir.rb', line 14

def expect
  @expect
end

#inputObject

Returns the value of attribute input

Returns:

  • (Object)

    the current value of input



14
15
16
# File 'lib/hecks/behaviors/ir.rb', line 14

def input
  @input
end

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



14
15
16
# File 'lib/hecks/behaviors/ir.rb', line 14

def kind
  @kind
end

#on_aggregateObject

Returns the value of attribute on_aggregate

Returns:

  • (Object)

    the current value of on_aggregate



14
15
16
# File 'lib/hecks/behaviors/ir.rb', line 14

def on_aggregate
  @on_aggregate
end

#setupsObject

Returns the value of attribute setups

Returns:

  • (Object)

    the current value of setups



14
15
16
# File 'lib/hecks/behaviors/ir.rb', line 14

def setups
  @setups
end

#tests_commandObject

Returns the value of attribute tests_command

Returns:

  • (Object)

    the current value of tests_command



14
15
16
# File 'lib/hecks/behaviors/ir.rb', line 14

def tests_command
  @tests_command
end

Instance Method Details

#dotted?Boolean

An already-dotted tests_command is a literal FQN; otherwise on: composes with the domain name resolved once setups/the tested dispatch actually run (see Expectations — the domain isn't known until loads is booted, so it's a runtime concern, not a field here).

Returns:

  • (Boolean)


21
# File 'lib/hecks/behaviors/ir.rb', line 21

def dotted? = tests_command.to_s.include?(".")

#query?Boolean

Returns:

  • (Boolean)


23
# File 'lib/hecks/behaviors/ir.rb', line 23

def query? = kind == :query