LCOV - code coverage report
Current view: top level - lib/_classes/math - abstract_recalculation.dart Coverage Total Hit
Test: lcov.info Lines: 66.7 % 3 2
Test Date: 2026-11-14 15:04:37 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/structure/currency/exchange.dart';
       5              : 
       6              : abstract class AbstractRecalculation {
       7              :   late Exchange exchange;
       8              : 
       9              :   double getDelta();
      10              : 
      11            2 :   double getProgress(double amount, double progress, double delta, [double shift = 0]) {
      12            4 :     if (amount + shift != 0) {
      13            0 :       progress = (amount * progress + delta) / (amount + shift);
      14              :     } else {
      15              :       progress = 0.0;
      16              :     }
      17              :     return progress;
      18              :   }
      19              : }
        

Generated by: LCOV version 2.0-1