LocalTest constructor

LocalTest(
  1. String name,
  2. Metadata metadata,
  3. FutureOr<void> _body(), {
  4. Trace? trace,
  5. TestLocation? location,
  6. bool guarded = true,
  7. bool isScaffoldAll = false,
})

Creates a new LocalTest.

If guarded is true, the test is run in its own error zone, and any errors that escape that zone cause the test to fail. If it's false, it's the caller's responsibility to invoke LiveTest.run in the context of a call to Invoker.guard.

Implementation

LocalTest(
  this.name,
  this.metadata,
  this._body, {
  this.trace,
  this.location,
  bool guarded = true,
  this.isScaffoldAll = false,
}) : _guarded = guarded;