stash_test 4.5.3 copy "stash_test: ^4.5.3" to clipboard
stash_test: ^4.5.3 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
130
pub points
19%
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