Dart bindings to libgit2
Find a file
Aleksey Kulikov 3a0fa75929 feat(repository)!: add more aliases for api methods
BREAKING CHANGE: Make repository entry point for most operations
2021-10-11 20:06:36 +03:00
example feat(repository)!: add more aliases for api methods 2021-10-11 20:06:36 +03:00
lib feat(repository)!: add more aliases for api methods 2021-10-11 20:06:36 +03:00
libgit2 feat(repository): add ability to pass credentials in callbacks argument 2021-09-29 18:54:29 +03:00
test feat(repository)!: add more aliases for api methods 2021-10-11 20:06:36 +03:00
.gitignore docs: add instructions for test coverage 2021-10-09 14:18:27 +03:00
analysis_options.yaml style: use conts for constructors 2021-09-23 10:48:23 +03:00
pubspec.yaml docs: add readme with ffigen command for compiler options 2021-09-17 21:50:00 +03:00
README.md docs: add instructions for test coverage 2021-10-09 14:18:27 +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 --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