net_mock 1.0.6 copy "net_mock: ^1.0.6" to clipboard
net_mock: ^1.0.6 copied to clipboard

A Dart package designed to simplify HTTP request mocking in your tests.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add net_mock

With Flutter:

 $ flutter pub add net_mock

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  net_mock: ^1.0.6

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:net_mock/net_mock.dart';
2
likes
160
points
49
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart package designed to simplify HTTP request mocking in your tests.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

equatable, http, http_interceptor

More

Packages that depend on net_mock