Dart bindings to libgit2
Find a file
2021-10-28 20:08:50 +03:00
.github/workflows chore: change ci for windows 2021-10-28 19:03:59 +03:00
bin feat: add support for windows (#2) and macos (#3) 2021-10-27 12:44:49 +03:00
example style: stricter linting 2021-10-23 12:31:18 +03:00
lib test: fix tests failing in ci 2021-10-27 20:59:50 +03:00
test test: fix tests failing in ci 2021-10-27 20:59:50 +03:00
.gitignore feat: add library setup for linux 2021-10-25 13:43:31 +03:00
analysis_options.yaml style: stricter linting 2021-10-23 12:31:18 +03:00
dart_test.yaml test: fix tests failing in ci 2021-10-27 20:59:50 +03:00
LICENSE chore: add LICENSE 2021-10-28 20:08:50 +03:00
pubspec.yaml feat: add library setup for linux 2021-10-25 13:43:31 +03:00
README.md feat: add more toString overrides for debugging 2021-10-13 19:23:34 +03:00

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