stash_test 5.1.1 copy "stash_test: ^5.1.1" to clipboard
stash_test: ^5.1.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 VaultStoreContext extends VaultTestContext<CustomVaultStore> {
  VaultStoreContext(super.generator);

  @override
  Future<CustomVaultStore> newStore() {
    return newCustomVaultStore();
  }
}

class CacheStoreContext extends CacheTestContext<CustomCacheStore> {
  CacheStoreContext(super.generator);

  @override
  Future<CustomCacheStore> newStore() {
    return newCustomCacheStore();
  }
}

void main() async {
  testStore((generator) => VaultStoreContext(generator));
  testStore((generator) => CacheStoreContext(generator));
  testVault((generator) => VaultStoreContext(generator));
  testCache((generator) => CacheStoreContext(generator));
}

0
likes
140
pub points
24%
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, equatable, stash, test, time

More

Packages that depend on stash_test