hive_test

Last updated:

0 purchases

hive_test Image
hive_test Images
Add to Cart

Description:

hive test

hive_test #
Initialize a temporary Hive database for testing






🚀 Installation #
Install from pub.dev:
dev_dependencides:
hive_test: ^1.0.1
copied to clipboard
🔨 Usage #
In your test's setUp method, simply run:
setUp(() async {
await setUpTestHive();
});
copied to clipboard
Then, in the tearDown method:
tearDown(() async {
await tearDownTestHive();
});
copied to clipboard
Under the hood, this is a real instance of Hive. So you can open boxes, perform read/write transactions etc just as you would in an app!
👨🏻‍💻 Authors #

@ptrbrynt at Netsells

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.