LCOV - code coverage report
Current view: top level - _classes/math - account_recalculation.dart Coverage Total Hit
Test: lcov.info Lines: 100.0 % 5 5
Test Date: 2026-11-14 15:03:01 Functions: - 0 0

            Line data    Source code
       1              : // Copyright 2023 The terCAD team. All rights reserved.
       2              : // Use of this source code is governed by a CC BY-NC-ND 4.0 license that can be found in the LICENSE file.
       3              : 
       4              : import 'package:app_finance/_classes/math/abstract_recalculation.dart';
       5              : import 'package:app_finance/_classes/structure/account_app_data.dart';
       6              : 
       7              : class AccountRecalculation extends AbstractRecalculation {
       8              :   AccountAppData change;
       9              :   AccountAppData? initial;
      10              : 
      11            1 :   AccountRecalculation({
      12              :     required this.change,
      13              :     this.initial,
      14              :   });
      15              : 
      16            1 :   @override
      17              :   double getDelta() {
      18            2 :     return change.hidden
      19            3 :         ? -(initial?.details ?? 0.0)
      20            9 :         : (initial?.hidden ?? true ? change.details : change.details - initial?.details);
      21              :   }
      22              : }
        

Generated by: LCOV version 2.0-1