aboutsummaryrefslogtreecommitdiffstats
path: root/persistence/src/vespa/persistence/spi/test.h
blob: 759b1fb1020a2f844a6d73a847cfc50f4d415390 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include "bucket.h"
#include <memory>

namespace storage::spi { class DocEntry; }

namespace storage::spi::test {

// Helper functions used by unit tests

Bucket makeSpiBucket(document::BucketId bucketId);
std::unique_ptr<DocEntry> cloneDocEntry(const DocEntry & entry);
bool equal(const DocEntry & a, const DocEntry & b);

}