stash_test 3.0.0-dev.3 copy "stash_test: ^3.0.0-dev.3" to clipboard
stash_test: ^3.0.0-dev.3 copied to clipboard

outdated

Provides the testing support needed in order to implement extensions to the base stash package

example/example.md

import 'package:stash_custom/stash_custom.dart';
import 'package:stash_test/stash_test.dart';

class DefaultContext extends TestContext<CustomStore> {
  DefaultContext(ValueGenerator generator,
      {dynamic Function(Map<String, dynamic>)? fromEncodable})
      : super(generator, fromEncodable: generator.fromEncodable);

  @override
  Future<FileStore> newStore() {
    return Future.value(CustomStore(..., fromEncodable: fromEncodable));
  }
}

void main() async {
  testStore((generator) => DefaultContext(generator));
  testCache((generator) => DefaultContext(generator));
}
0
likes
0
pub points
19%
popularity

Publisher

verified publisherivoleitao.dev

Provides the testing support needed in order to implement extensions to the base stash package

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

clock, enum_to_string, equatable, matcher, stash, test, time

More

Packages that depend on stash_test