just gen-client — покрывает links, cashflow-broker, ручные цены, imports/pending, goals/income/rebalance/tax/benchmarks.
30 lines
1.0 KiB
Dart
30 lines
1.0 KiB
Dart
import 'package:test/test.dart';
|
|
import 'package:fintracker_api/fintracker_api.dart';
|
|
|
|
|
|
/// tests for TaxApi
|
|
void main() {
|
|
final instance = FintrackerApi().getTaxApi();
|
|
|
|
group(TaxApi, () {
|
|
// Lots
|
|
//
|
|
// Open lots with the date after which a sale falls under the long-term exemption. `year` selects the rate the \"what if I sold today\" figure is computed at; the lots themselves are always the ones open right now. `lot` is rebuilt from the ledger on every refresh and holds today's state only, so there is no honest way to answer \"which lots were open on 31 December two years ago\" — and inventing one would be worse than the limitation.
|
|
//
|
|
//Future<TaxLotsOut> taxLots({ int year, int accountId }) async
|
|
test('test taxLots', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Summary
|
|
//
|
|
// The year's estimated tax position, per account and in total.
|
|
//
|
|
//Future<TaxYearOut> taxSummary({ int year, int accountId }) async
|
|
test('test taxSummary', () async {
|
|
// TODO
|
|
});
|
|
|
|
});
|
|
}
|