git/t/unit-tests/t-reftable-merged.c

/*
Copyright 2020 Google LLC

Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file or at
https://developers.google.com/open-source/licenses/bsd
*/

#include "test-lib.h"
#include "reftable/blocksource.h"
#include "reftable/constants.h"
#include "reftable/merged.h"
#include "reftable/reader.h"
#include "reftable/reftable-error.h"
#include "reftable/reftable-generic.h"
#include "reftable/reftable-merged.h"
#include "reftable/reftable-writer.h"

static ssize_t strbuf_add_void(void *b, const void *data, const size_t sz)
{}

static int noop_flush(void *arg)
{}

static void write_test_table(struct strbuf *buf,
			     struct reftable_ref_record refs[], const size_t n)
{}

static void write_test_log_table(struct strbuf *buf, struct reftable_log_record logs[],
				 const size_t n, const uint64_t update_index)
{}

static struct reftable_merged_table *
merged_table_from_records(struct reftable_ref_record **refs,
			  struct reftable_block_source **source,
			  struct reftable_reader ***readers, const size_t *sizes,
			  struct strbuf *buf, const size_t n)
{}

static void readers_destroy(struct reftable_reader **readers, const size_t n)
{}

static void t_merged_single_record(void)
{}

static void t_merged_refs(void)
{}

static struct reftable_merged_table *
merged_table_from_log_records(struct reftable_log_record **logs,
			      struct reftable_block_source **source,
			      struct reftable_reader ***readers, const size_t *sizes,
			      struct strbuf *buf, const size_t n)
{}

static void t_merged_logs(void)
{}

static void t_default_write_opts(void)
{}


int cmd_main(int argc, const char *argv[])
{}