stash_test 3.2.1 copy "stash_test: ^3.2.1" to clipboard
stash_test: ^3.2.1 copied to clipboard

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
140
pub points
27%
popularity

Publisher

verified publisherivoleitao.dev

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

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

MIT (license)

Dependencies

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

More

Packages that depend on stash_test