mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
28 lines
839 B
Dart
28 lines
839 B
Dart
import 'package:libgit2dart/libgit2dart.dart';
|
|
import 'package:libgit2dart/src/util.dart';
|
|
import 'package:test/test.dart';
|
|
|
|
void main() {
|
|
group('Libgit2', () {
|
|
test('returns up to date version of libgit2', () {
|
|
expect(Libgit2.version, libgit2Version);
|
|
});
|
|
|
|
test('returns list of options libgit2 was compiled with', () {
|
|
expect(
|
|
Libgit2.features,
|
|
{GitFeature.threads, GitFeature.https, GitFeature.ssh, GitFeature.nsec},
|
|
);
|
|
});
|
|
|
|
test('returns the owner validation setting for repository directories', () {
|
|
expect(Libgit2.ownerValidation, true);
|
|
});
|
|
|
|
test('sets the owner validation setting for repository directories', () {
|
|
expect(Libgit2.ownerValidation, true);
|
|
Libgit2.ownerValidation = false;
|
|
expect(Libgit2.ownerValidation, false);
|
|
});
|
|
});
|
|
}
|