nock 1.2.1 icon indicating copy to clipboard operation
nock: ^1.2.1 copied to clipboard

HTTP requests mocking library for dart and flutter. Test your application in isolation.

18
likes
120/ 140
pub points
79%
popularity

We analyzed this package 4 days ago, and awarded it 120 pub points (of a possible 140):

icon indicating section status
Follow Dart file conventions
30 / 30icon to trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: MIT.

icon indicating section status
Provide documentation
10 / 20icon to trigger folding of the section

10/10 points: Package has an example

0/10 points: 20% or more of the public API has dartdoc comments

  • 1 out of 64 API elements (1.6 %) have documentation comments.

Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.

icon indicating section status
Platform support
20 / 20icon to trigger folding of the section

20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, MacOS, Linux)

  • ✓ Android
  • ✓ iOS
  • ✓ Windows
  • ✓ Linux
  • ✓ MacOS

These platforms are not supported:

Package not compatible with platform Web

Because:

  • package:nock/nock.dart that imports:
  • package:nock/src/exceptions.dart that imports:
  • package:nock/src/overrides.dart that imports:
  • package:nock/src/interceptor.dart that imports:
  • dart:io
icon indicating section status
Pass static analysis
20 / 30icon to trigger folding of the section

20/30 points: code has no errors, warnings, lints, or formatting issues

Found 27 issues. Showing the first 2:

INFO: Prefer typing uninitialized variables and fields.

lib/src/exceptions.dart:26:9

   ╷
26 │   final url;
   │         ^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/exceptions.dart

INFO: Prefer typing uninitialized variables and fields.

lib/src/exceptions.dart:62:9

   ╷
62 │   final body;
   │         ^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/exceptions.dart

icon indicating section status
Support up-to-date dependencies
20 / 20icon to trigger folding of the section

10/10 points: All of the package dependencies are supported in the latest version

PackageConstraintCompatibleLatest
collection^1.15.01.16.01.16.0
test^1.16.51.21.61.21.6
Transitive dependencies
PackageConstraintCompatibleLatest
_fe_analyzer_shared-49.0.049.0.0
analyzer-5.1.05.1.0
args-2.3.12.3.1
async-2.9.02.9.0
boolean_selector-2.1.02.1.0
convert-3.0.23.0.2
coverage-1.6.11.6.1
crypto-3.0.23.0.2
file-6.1.46.1.4
frontend_server_client-3.0.03.0.0
glob-2.1.02.1.0
http_multi_server-3.2.13.2.1
http_parser-4.0.14.0.1
io-1.0.31.0.3
js-0.6.40.6.4
logging-1.0.21.0.2
matcher-0.12.120.12.12
meta-1.8.01.8.0
mime-1.0.21.0.2
node_preamble-2.0.12.0.1
package_config-2.1.02.1.0
path-1.8.21.8.2
pool-1.5.11.5.1
pub_semver-2.1.12.1.1
shelf-1.4.01.4.0
shelf_packages_handler-3.0.13.0.1
shelf_static-1.1.11.1.1
shelf_web_socket-1.0.21.0.2
source_map_stack_trace-2.1.02.1.0
source_maps-0.10.100.10.10
source_span-1.9.11.9.1
stack_trace-1.10.01.10.0
stream_channel-2.1.12.1.1
string_scanner-1.1.11.1.1
term_glyph-1.2.11.2.1
test_api-0.4.140.4.14
test_core-0.4.180.4.18
typed_data-1.3.11.3.1
vm_service-9.4.09.4.0
watcher-1.0.11.0.1
web_socket_channel-2.2.02.2.0
webkit_inspection_protocol-1.2.01.2.0
yaml-3.1.13.1.1

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

10/10 points: Package supports latest stable Dart and Flutter SDKs

icon indicating section status
Support sound null safety
20 / 20icon to trigger folding of the section

20/20 points: Package and dependencies are fully migrated to null safety!

Analysed with Pana 0.21.18, Dart 2.18.2.

18
likes
120
pub points
79%
popularity

Publisher

unverified uploader

HTTP requests mocking library for dart and flutter. Test your application in isolation.

Homepage

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

collection, test

More

Packages that depend on nock