hrk_nasa_apis_test 1.0.0 copy "hrk_nasa_apis_test: ^1.0.0" to clipboard
hrk_nasa_apis_test: ^1.0.0 copied to clipboard

A library containing test and mock data for hrk_nasa_apis package

ci hrk_nasa_apis_test pub package link codecov badge hrk_nasa_apis_test

A library containing test and mock data for hrk_nasa_apis package.

Features #

Getting started #

dart pub add hrk_nasa_apis_test

Usage #

import 'package:hrk_nasa_apis/hrk_nasa_apis.dart';
import 'package:hrk_nasa_apis_test/hrk_nasa_apis_test.dart';

void main() async {
  // hrk_nasa_apis_test/lib/src/services/ssd_cneos/sbdb_cad_api/data/sbdb_cad_body/sample/200/0.json
  SbdbCadApi sbdbCadApi = SbdbCadApiExt.getAnswers(
    response: SbdbCadApiExt.getResponseSbdbCadBody('200/0'),
    // delay: const Duration(seconds: 10),
  );

  // With delay
  sbdbCadApi = SbdbCadApiExt.getAnswers(
    response: SbdbCadApiExt.getResponseSbdbCadBody('200/0'),
    delay: const Duration(seconds: 10),
  );

  // sbdbCadApi = SbdbCadApiExt.getThrows(throwable: throwable);

  // hrk_nasa_apis_test/lib/src/services/ssd_cneos/sbdb_cad_api/data/sbdb_cad_body/sample/200/1.json
  String sbdbCadBodyJsonRaw = SbdbCadBodyExt.getSampleJsonRaw('200/1');
  JsonMap sbdbCadBodyJsonMap = SbdbCadBodyExt.getSampleJsonMap('200/1');
  SbdbCadBody sbdbCadBody = SbdbCadBodyExt.getSample('200/1');
}
2
likes
160
points
112
downloads

Publisher

verified publisherhrishikesh-kadam.dev

Weekly Downloads

A library containing test and mock data for hrk_nasa_apis package

Repository (GitHub)
View/report issues

Topics

#nasa

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

dio, hrk_nasa_apis, mockito

More

Packages that depend on hrk_nasa_apis_test