Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6.0.2
- uses: actions/checkout@v4

- name: Setup Dart SDK
uses: dart-lang/setup-dart@v1.7.2
Expand All @@ -38,3 +38,10 @@ jobs:

- name: Verify 100% test coverage
run: dart run tool/verify_coverage.dart

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage/coverage.lcov
fail_ci_if_error: false
2 changes: 1 addition & 1 deletion lib/domain/acoustics.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// Quantity types, units and constants commonly encountered in acoustics.
library acoustics;
library;

export 'package:quantity/quantity.dart'
show
Expand Down
2 changes: 1 addition & 1 deletion lib/domain/astronomical.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// Quantity types, units and constants commonly encountered in the field of Astronomy and related sciences.
library astronomical;
library;

import 'package:quantity/quantity.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/domain/atomic_nuclear.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// Quantity types, units and constants commonly encountered in the fields of atomic, molecular, and nuclear physics.
library atomic_nuclear;
library;

export 'package:quantity/domain/thermodynamic.dart'
show avogadro, faradayConstant, loschmidtStdAtm;
Expand Down
2 changes: 1 addition & 1 deletion lib/domain/chemistry.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// Quantity types, units and constants commonly encountered in the field of chemistry.
library chemistry;
library;

export 'package:quantity/domain/thermodynamic.dart'
show avogadro, gasConstantMolar, faradayConstant, loschmidtStdAtm;
Expand Down
2 changes: 1 addition & 1 deletion lib/domain/computing.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// Quantity types, units and constants commonly encountered in computing, information theory, and digital layouts.
library computing;
library;

export 'package:quantity/quantity.dart'
show
Expand Down
3 changes: 2 additions & 1 deletion lib/domain/electromagnetic.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/// Quantity types, units and constants commonly encountered in the fields dealing with
library;

/// electromagnetics.
library electromagnetic;

import 'package:quantity/quantity.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/domain/fluid_dynamics.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// Quantity types, units and constants commonly encountered in fluid dynamics and hydraulics.
library fluid_dynamics;
library;

export 'package:quantity/quantity.dart'
show
Expand Down
2 changes: 1 addition & 1 deletion lib/domain/radiometry.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// Quantity types, units and constants commonly encountered in the fields of radiometry and photometry.
library radiometry;
library;

export 'package:quantity/domain/astronomical.dart'
show solarConstant, solarLuminosity;
Expand Down
3 changes: 2 additions & 1 deletion lib/domain/thermodynamic.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/// Quantity types, units and constants commonly encountered in the field of
library;

/// thermodynamics and related sciences.
library thermodynamic;

import 'package:quantity/quantity.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/domain/universal.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// Quantity types and constants with universal application.
library universal;
library;

import 'package:quantity/quantity.dart';

Expand Down
3 changes: 2 additions & 1 deletion lib/number.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
/// The _quantity package_ accepts both Dart's `num` types and the `Number`s defined by this
library;

/// _number library_ as quantity values and for quantity operations.
///
/// The classes in this library can be used to model quantities having values with arbitrary precision
/// as well as imaginary or complex numbers. It is independent of the quantity classes and can be
/// used in a purely mathematical context.
library number;

export 'package:decimal/decimal.dart';
export 'src/number/double.dart';
Expand Down
3 changes: 2 additions & 1 deletion lib/quantity.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/// A superset of all the other libraries available in the _quantity package_.
library;

/// Import this library to have access to all the quantity types,
/// units and constants defined in this package. Alternatively, import only the _quantity_si
/// library_ to stick to the types and units consistent with the International System of Units (SI).
library quantity;

export 'number.dart';
export 'quantity_ext.dart';
Expand Down
3 changes: 2 additions & 1 deletion lib/quantity_core.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/// Core library containing only core dimensions, units, numbers and quantity engine classes.
library;

/// Does not export any of the 75+ physical quantity subclasses, allowing clean compiler tree-shaking.
library quantity_core;

export 'package:decimal/decimal.dart';
export 'number.dart';
Expand Down
3 changes: 2 additions & 1 deletion lib/quantity_ext.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/// Extends the core library with non-SI units, constants, unit synonyms to enable terse
library;

/// constructors and expressions, and auxiliary functions.
library quantity_ext;

// quantity type extensions
export 'src/ext/acceleration_ext.dart';
Expand Down
3 changes: 2 additions & 1 deletion lib/quantity_range.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/// Models ranges of quantities with start and end values (not necessarily increasing).
library;

/// Additional classes and utilities are provided for `Angle` and `TimePeriod` ranges.
library quantity_range;

export 'range/angle_range.dart';
export 'range/quantity_range.dart';
Expand Down
3 changes: 2 additions & 1 deletion lib/quantity_si.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/// The core library containing the fundamental
library;

/// quantity classes and types consistent with the
/// [International System of Units](http://physics.nist.gov/cuu/Units/introduction.html)
/// (SI, in the French acronym).
library quantity_si;

export 'src/si/dimensions.dart';
export 'src/si/dimensions_exception.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/range/quantity_range.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class QuantityRange<Q extends Quantity> {
bool encompasses(QuantityRange<Q> range2) =>
(minValue <= range2.minValue) && (maxValue >= range2.maxValue);

/// Returns a String representation of this range in the form '<Q1> to <Q2>'.
/// Returns a String representation of this range in the form `'<Q1> to <Q2>'`.
@override
String toString() => '$q1 to $q2';

Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies:
intl: '>=0.19.0 <1.0.0'
logging: ^1.0.0
dev_dependencies:
test: ^1.16.0
lints: ^3.0.0
benchmark_harness: ^2.2.0
test: ^1.31.0
lints: ^6.0.0
benchmark_harness: ^2.4.0
coverage: ^1.7.2
Loading