mirror of
https://github.com/NixOS/nix.git
synced 2025-12-04 08:00:59 +01:00
nix-fetchers-c: Init with settings object
Also make it a dependency of nix-flake-c; we'll need that.
This commit is contained in:
parent
1061a0965a
commit
60bffbd41b
17 changed files with 213 additions and 0 deletions
18
src/libfetchers-tests/nix_api_fetchers.cc
Normal file
18
src/libfetchers-tests/nix_api_fetchers.cc
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#include "gmock/gmock.h"
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "nix_api_fetchers.h"
|
||||
#include "nix/store/tests/nix_api_store.hh"
|
||||
|
||||
namespace nixC {
|
||||
|
||||
TEST_F(nix_api_store_test, nix_api_fetchers_new_free)
|
||||
{
|
||||
nix_fetchers_settings * settings = nix_fetchers_settings_new(ctx);
|
||||
assert_ctx_ok();
|
||||
ASSERT_NE(nullptr, settings);
|
||||
|
||||
nix_fetchers_settings_free(settings);
|
||||
}
|
||||
|
||||
} // namespace nixC
|
||||
Loading…
Add table
Add a link
Reference in a new issue