LCOV - code coverage report
Current view: top level - src - ffi_base.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 6 7 85.7 %
Date: 2022-08-24 00:20:53 Functions: 0 0 -

          Line data    Source code
       1             : // Copyright (c) 2020 Famedly GmbH
       2             : // SPDX-License-Identifier: AGPL-3.0-or-later
       3             : 
       4             : import 'dart:ffi';
       5             : import 'dart:io';
       6             : 
       7             : import 'package:ffi/ffi.dart';
       8             : 
       9           3 : final libolm = Platform.isIOS
      10           0 :     ? DynamicLibrary.process()
      11           2 :     : DynamicLibrary.open(Platform.isAndroid
      12             :         ? 'libolm.so'
      13           1 :         : Platform.isWindows
      14             :             ? 'libolm.dll'
      15           1 :             : Platform.isMacOS
      16             :                 ? 'libolm.3.dylib'
      17             :                 : 'libolm.so.3');
      18             : 
      19           1 : void throw_olm(Pointer<Utf8> message) {
      20           2 :   throw Exception(message.toDartString());
      21             : }

Generated by: LCOV version 1.16