#include "components/zucchini/equivalence_map.h"
#include <cstring>
#include <deque>
#include <map>
#include <string>
#include <utility>
#include <vector>
#include "components/zucchini/encoded_view.h"
#include "components/zucchini/image_index.h"
#include "components/zucchini/suffix_array.h"
#include "components/zucchini/targets_affinity.h"
#include "components/zucchini/test_disassembler.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace zucchini {
namespace {
OffsetDeque;
constexpr offset_t kReferenceSize = …;
ImageIndex MakeImageIndexForTesting(const char* a,
std::vector<Reference>&& refs0,
std::vector<Reference>&& refs1) { … }
std::vector<TargetsAffinity> MakeTargetsAffinitiesForTesting(
const ImageIndex& old_image_index,
const ImageIndex& new_image_index,
const EquivalenceMap& equivalence_map) { … }
}
TEST(EquivalenceMapTest, GetTokenSimilarity) { … }
TEST(EquivalenceMapTest, GetEquivalenceSimilarity) { … }
TEST(EquivalenceMapTest, ExtendEquivalenceForward) { … }
TEST(EquivalenceMapTest, ExtendEquivalenceBackward) { … }
TEST(EquivalenceMapTest, PruneEquivalencesAndSortBySource) { … }
TEST(EquivalenceMapTest, NaiveExtendedForwardProject) { … }
TEST(EquivalenceMapTest, ExtendedForwardProject) { … }
TEST(EquivalenceMapTest, ExtendedForwardProjectEncoding) { … }
TEST(EquivalenceMapTest, ForwardProjectAll) { … }
TEST(EquivalenceMapTest, Build) { … }
}