ParserTest<I, O> class

Constructors

ParserTest.new({required BuildContext context, required Allocator allocator, String inputAsCode(I input)?, String inputAsString(I input)?, required StringSink output, required ParserBuilder<I, O> parser, required String parserName, required String parserNameNoResult, required ParserBuilder<I, Object?> parserNoResult})

Properties

allocator Allocator
final
context BuildContext
final
hashCode int
The hash code for this object.
no setterinherited
inputAsCode String Function(I input)?
final
inputAsString String Function(I input)?
final
output StringSink
final
parser ParserBuilder<I, O>
final
parserName String
final
parserNameNoResult String
final
parserNoResult ParserBuilder<I, Object?>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getReason({required I input, required String subject}) String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
testFailure({List<({Calculable<Object?> actual, Calculable<Object?> expected, String reason})>? errorTests, required List<String> errors, required int failPos, required I input, required int pos}) → void
testSuccess({required I input, required int pos, O? result, List<({Expr<Object?> actual, Expr<Object?> expected, String reason})>? resultTests}) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited