Skip to content

All Procedure Methods ​

NameDescription
Expectation::toBeAExpectation test that makes sure an expectation value matches the type or array of types specified.
Expectation::toBeAnArrayOfVerifies that the expectation value is an array whose type matches the type specified.
Expectation::toBeArrayVerifies that the expectation value is an array.
Expectation::toBeAValidENVITaskVerifies that the expectation value is a valid ENVI task by using the idl ENVITask() function.
Expectation::toBeAValidIDLTaskVerifies that the expectation value is a valid IDL task by using the idl IDLTask() function.
Expectation::toBeAValidObjectVerifies that the expectation value is an object by using the idl obj_valid() function.
Expectation::toBeBetweenVerifies that the expectation value is between a low and high number.
Expectation::toBeCloseToVerifies that the expectation value is close to a number, which is useful for floating point math.
Expectation::toBeDirectoryVerifies that the expectation value (a path, or array of paths) is an existing directory.
Expectation::toBeEmptyVerifies that the expectation value is empty.
Expectation::toBeFalseVerifies that the expectation value is falsy by using an if statement like this:
Expectation::toBeFalsyVerifies that the expectation value is falsy, which is the opposite of idl toBeTruthy.
Expectation::toBeFileVerifies that the expectation value (a path, or array of paths) is an existing regular file.
Expectation::toBeFiniteVerifies that the expectation value is finite (not NaN and not infinity).
Expectation::toBeGreaterThanVerifies that the expectation value is greater than a number.
Expectation::toBeGreaterThanOrEqualVerifies that the expectation value is greater than or equal to a number.
Expectation::toBeInfiniteVerifies that the expectation value is positive or negative infinity.
Expectation::toBeInstanceOfVerifies that the expectation value is an object that is an instance of a class, including through inheritance (uses idl obj_isa()).
Expectation::toBeLessThanVerifies that the expectation value is less than a number.
Expectation::toBeLessThanOrEqualVerifies that the expectation value is less than or equal to a number.
Expectation::toBeNaNVerifies that the expectation value is NaN.
Expectation::toBeNullVerifies that the value of an expectation is null or undefined using IDL's idl isa() function with the null keyword set.
Expectation::toBeSameObjectVerifies that the expectation value is the exact same object reference as the compare value.
Expectation::toBeScalarVerifies that the expectation value is a scalar (a single value).
Expectation::toBeSortedVerifies that the expectation value (an array or list of real numbers or strings) is sorted.
Expectation::toBeTrueVerifies that the expectation value is truthy by using an if statement like this:
Expectation::toBeTruthyVerifies that the expectation value is truthy.
Expectation::toBeTypenameVerifies that the typename on an expectation value matches the specific name.
Expectation::toContainVerifies that an expectation value contains the specified variable value.
Expectation::toContainAllVerifies that the expectation value (an array, list, or the values of a hash, orderedhash, or dictionary) contains every one of the values specified.
Expectation::toContainAnyVerifies that the expectation value (an array, list, or the values of a hash, orderedhash, or dictionary) contains at least one of the values specified.
Expectation::toContainEqualVerifies that the expectation value (an array, list, or the values of a hash, orderedhash, or dictionary) contains an item equal to the compare value.
Expectation::toContainStringVerifies that an expectation value contains a sub string.
Expectation::toEndWithVerifies that the expectation value ends with a suffix.
Expectation::toEqualVerifies that an expectation value matches a compare value.
Expectation::toExecuteENVITaskVerifies an expectation value to run the ENVI::Execute method.
Expectation::toExecuteIDLTaskVerifies an expectation value to run the IDLTask::Execute method.
Expectation::toExistVerifies that the expectation value (a path, or array of paths) exists, whether it is a file or a directory.
Expectation::toFindInArraySimilar to idl expectation.toContain, this method verifies that an array has the value compare as one of the elements.
Expectation::toHaveDimensionsVerifies that the expectation value has exact dimensions (as returned by idl size(/dimensions)).
Expectation::toHaveKeyVerifies that the expectation value (a hash, orderedhash, or dictionary) has a key.
Expectation::toHaveKeyValueVerifies that the expectation value (a hash, orderedhash, or dictionary) has a key whose value equals another value.
Expectation::toHaveLengthVerifies that the expectation value has a number of elements.
Expectation::toHaveMethodVerifies that the expectation value (an object) has a method.
Expectation::toHaveSameDimensionsVerifies that the expectation value has the same dimensions as another value.
Expectation::toHaveTagVerifies that the expectation value (a structure) has a tag.
Expectation::toHaveUniqueValuesVerifies that the expectation value (an array or list) has no duplicate items.
Expectation::toMatchRegexVerifies that an expectation value matches a regular expression.
Expectation::toPrintVerifies that running a routine or object method prints some text to the console.
Expectation::toRunFunctionVerifies that the expectation value is a function and can be called with the specified arguments/keywords.
Expectation::toRunFunctionMethodVerifies that the expectation value is an object and can run the specified function method with the provided arguments/keywords.
Expectation::toRunProcedureVerifies that the expectation value is a procedure and can be called with the specified arguments/keywords.
Expectation::toRunProcedureMethodVerifies that the expectation value is an object and can run the specified procedure method with the provided arguments/keywords.
Expectation::toRunWithinVerifies that a routine or object method runs without error and finishes within a number of seconds.
Expectation::toStartWithVerifies that the expectation value starts with a prefix.
Expectation::toStrictEqualVerifies that an expectation value is equal to a compare value and also has the same type and dimensions.
Expectation::toThrowVerifies that running a routine or object method raises an error.
Expectation::toThrowMatchingVerifies that running a routine or object method raises an error whose message matches a regular expression.
Expectation::toThrowMessageVerifies that running a routine or object method raises an error whose message contains some text (case sensitive).
Luna::checkStatusProcedure method that checks status and raises an expection if we have failed any tests.
Luna::generateTestSummaryMethod that prints test summary to the IDL Console for quick visualization of how the overall test process went.
Sol::writeReportWrites the results of the last run to disk in a format that other tools, such as continuous integration systems, can read.

Licensed under MIT.