Skip to main content

gmconsult_dev 0.0.1-1 copy "gmconsult_dev: ^0.0.1-1" to clipboard
gmconsult_dev: ^0.0.1-1 copied to clipboard

unlistedoutdated

DART utilities for GM Consult developers to generate code and lubricate / standardize unit testing.

gmconsult_dev #

GM Consult Pty Ltd

Generate code and lubricate / standardize unit testing. #

THIS PACKAGE IS INTERNAL and UNLISTED, AND SUBJECT TO BREAKING CHANGES WITHOUT NOTICE.

Skip to section:

Overview #

TODO: Overview

A collection of utilities used for unit testing and code generation. May require knowledge of GM Consult coding practices and management systems.

Use the Echo class to print a collection JSON documents to the console as a formatted table.

Usage #

In the pubspec.yaml of your flutter project, add the following dev dependency:

dev_dependencies:
  gmconsult_dev: <latest_version>

In your test file add the following import:

import 'package:gmconsult_dev/gmconsult_dev.dart';

Pass a collection of JSON documents to the Echo() factory constructor and call printResults:


// a sample list of JSON documents
final json =[
  {'Key':'item 1', 'Value': 1.3456},
  {'Key':'item 2', 'Value': 7.89}
];

// pass a title and results to a Echo instance and call printResults
Echo(title: 'MY TEST NAME', results: json).printResults();

// prints:
// —————————————————————————————————————————————————————————————————————————————————
// MY TEST NAME                                                                     
// _________________________________________________________________________________
// │  Key                                  │                 Value                 │
// —————————————————————————————————————————————————————————————————————————————————
// │  item 1                               │                               1.3456  │
// │  item 2                               │                               7.8900  │
// —————————————————————————————————————————————————————————————————————————————————

//

API #

See the API on pub.dev.

Definitions #

None

References #

None

Issues #

GM Consult team members should log issues and bugs.

This project is an internal package for GM Consult projects and we cannot respond to pull requests or issues raised by non team members.

0
likes
0
points
17
downloads

Publisher

verified publishergmconsult.dev

Weekly Downloads

DART utilities for GM Consult developers to generate code and lubricate / standardize unit testing.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection

More

Packages that depend on gmconsult_dev