split from the prior commit for easier review. Change-Id: Iabf1bc759cb56a04211d4cb07769f53b0f302b39
31 lines
533 B
C++
31 lines
533 B
C++
#include <regex>
|
|
|
|
#include <gtest/gtest.h>
|
|
#pragma GCC diagnostic push
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
#include <rapidcheck/gtest.h>
|
|
#pragma GCC diagnostic pop
|
|
|
|
#include "tests/derived-path.hh"
|
|
#include "tests/libstore.hh"
|
|
|
|
namespace nix {
|
|
|
|
class DerivedPathTest : public LibStoreTest
|
|
{
|
|
};
|
|
|
|
#ifndef COVERAGE
|
|
|
|
RC_GTEST_FIXTURE_PROP(
|
|
DerivedPathTest,
|
|
prop_legacy_round_rip,
|
|
(const DerivedPath & o))
|
|
{
|
|
RC_ASSERT(o == DerivedPath::parseLegacy(*store, o.to_string_legacy(*store)));
|
|
}
|
|
|
|
#endif
|
|
|
|
}
|