class MIPSUnit::MSpec::Global

A container for MSpec global data

Author

Zachary Kurmas

Copyright

Copyright © 2012

Constants

ASSEMBLY_FILE_MISSING

Public Instance Methods

add_group(group) click to toggle source

Append group to the list of test groups.

(The define method in the global namespace uses this method to store the test groups it creates.)

# File lib/mipsunit/mspec/global.rb, line 21
def add_group(group)
  @test_groups << group
end
groups() click to toggle source

get test groups

# File lib/mipsunit/mspec/global.rb, line 27
def groups
  @test_groups
end
print_single_warning(warning) click to toggle source

print a warning just one time per process

Public Class Methods

new() click to toggle source
# File lib/mipsunit/mspec/global.rb, line 12
def initialize
  @test_groups = []
  @data_in_before = nil
end