mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 12:19:09 -04:00
Dart bindings to libgit2
.github/workflows | ||
bin | ||
example | ||
lib | ||
test | ||
.gitignore | ||
analysis_options.yaml | ||
dart_test.yaml | ||
LICENSE | ||
pubspec.yaml | ||
README.md |
Development
To generate bindings with ffigen use (adjust paths to yours):
dart run ffigen --compiler-opts "-I/path/to/libgit2dart/libgit2/headers/ -I/lib64/clang/12.0.1/include"
Running Tests
To run all tests and generate coverage report use the following commands:
$ dart pub global activate coverage
$ dart test --coverage="coverage"
$ format_coverage --lcov --check-ignore --in=coverage --out=coverage/lcov.info --packages=.packages --report-on=lib
To view the generated coverage report you can use lcov:
$ genhtml coverage/lcov.info -o coverage/
$ open coverage/index.html