mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
test: disable repository owner verification for tests (#47)
This commit is contained in:
parent
f42f8a6e1b
commit
94c40f9a94
4 changed files with 61 additions and 4 deletions
|
@ -2480,17 +2480,39 @@ class Libgit2 {
|
|||
/// @return 0 on success, <0 on failure
|
||||
int git_libgit2_opts(
|
||||
int option,
|
||||
ffi.Pointer<ffi.Int8> out,
|
||||
) {
|
||||
return _git_libgit2_opts(
|
||||
option,
|
||||
out,
|
||||
);
|
||||
}
|
||||
|
||||
late final _git_libgit2_optsPtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Int32 Function(ffi.Int32)>>(
|
||||
late final _git_libgit2_optsPtr = _lookup<
|
||||
ffi.NativeFunction<
|
||||
ffi.Int32 Function(
|
||||
ffi.Int32, ffi.Pointer<ffi.Int8>)>>('git_libgit2_opts');
|
||||
late final _git_libgit2_opts = _git_libgit2_optsPtr
|
||||
.asFunction<int Function(int, ffi.Pointer<ffi.Int8>)>();
|
||||
|
||||
/// Set a library global option.
|
||||
///
|
||||
/// Look at [git_libgit2_opts]
|
||||
int git_libgit2_opts_set(
|
||||
int option,
|
||||
int value,
|
||||
) {
|
||||
return _git_libgit2_opts_set(
|
||||
option,
|
||||
value,
|
||||
);
|
||||
}
|
||||
|
||||
late final _git_libgit2_opts_setPtr =
|
||||
_lookup<ffi.NativeFunction<ffi.Int32 Function(ffi.Int32, ffi.Int32)>>(
|
||||
'git_libgit2_opts');
|
||||
late final _git_libgit2_opts =
|
||||
_git_libgit2_optsPtr.asFunction<int Function(int)>();
|
||||
late final _git_libgit2_opts_set =
|
||||
_git_libgit2_opts_setPtr.asFunction<int Function(int, int)>();
|
||||
|
||||
/// Free the memory referred to by the git_buf.
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue