TestDefinition constructor

TestDefinition({
  1. FutureOr<void> fn(
    1. TestContext
    )?,
  2. String? name,
  3. bool? ignore,
  4. bool? only,
  5. bool? sanitizeOps,
  6. bool? sanitizeResources,
  7. bool? sanitizeExit,
  8. Object? permissions,
})

Implementation

factory TestDefinition({
  _i7.FutureOr<void> Function(_i4.TestContext)? fn,
  _i2.String? name,
  _i2.bool? ignore,
  _i2.bool? only,
  _i2.bool? sanitizeOps,
  _i2.bool? sanitizeResources,
  _i2.bool? sanitizeExit,
  _i2.Object? permissions,
}) =>
    TestDefinition._(
      fn: fn == null
          ? null
          : _i3.allowInterop((p0) => _i6.Promise.futureOr(() => fn(p0))),
      name: name,
      ignore: ignore,
      only: only,
      sanitizeOps: sanitizeOps,
      sanitizeResources: sanitizeResources,
      sanitizeExit: sanitizeExit,
      permissions: permissions ?? _i6.undefined,
    );