#include "test-lib.h"
#include "lib-reftable.h"
#include "reftable/merged.h"
#include "reftable/reader.h"
#include "reftable/reftable-error.h"
#include "reftable/stack.h"
#include <dirent.h>
static void clear_dir(const char *dirname)
{ … }
static int count_dir_entries(const char *dirname)
{ … }
static char *get_tmp_template(int linenumber)
{ … }
static char *get_tmp_dir(int linenumber)
{ … }
static void t_read_file(void)
{ … }
static int write_test_ref(struct reftable_writer *wr, void *arg)
{ … }
static void write_n_ref_tables(struct reftable_stack *st,
size_t n)
{ … }
struct write_log_arg { … };
static int write_test_log(struct reftable_writer *wr, void *arg)
{ … }
static void t_reftable_stack_add_one(void)
{ … }
static void t_reftable_stack_uptodate(void)
{ … }
static void t_reftable_stack_transaction_api(void)
{ … }
static void t_reftable_stack_transaction_with_reload(void)
{ … }
static void t_reftable_stack_transaction_api_performs_auto_compaction(void)
{ … }
static void t_reftable_stack_auto_compaction_fails_gracefully(void)
{ … }
static int write_error(struct reftable_writer *wr UNUSED, void *arg)
{ … }
static void t_reftable_stack_update_index_check(void)
{ … }
static void t_reftable_stack_lock_failure(void)
{ … }
static void t_reftable_stack_add(void)
{ … }
static void t_reftable_stack_iterator(void)
{ … }
static void t_reftable_stack_log_normalize(void)
{ … }
static void t_reftable_stack_tombstone(void)
{ … }
static void t_reftable_stack_hash_id(void)
{ … }
static void t_suggest_compaction_segment(void)
{ … }
static void t_suggest_compaction_segment_nothing(void)
{ … }
static void t_reflog_expire(void)
{ … }
static int write_nothing(struct reftable_writer *wr, void *arg UNUSED)
{ … }
static void t_empty_add(void)
{ … }
static int fastlogN(uint64_t sz, uint64_t N)
{ … }
static void t_reftable_stack_auto_compaction(void)
{ … }
static void t_reftable_stack_auto_compaction_factor(void)
{ … }
static void t_reftable_stack_auto_compaction_with_locked_tables(void)
{ … }
static void t_reftable_stack_add_performs_auto_compaction(void)
{ … }
static void t_reftable_stack_compaction_with_locked_tables(void)
{ … }
static void t_reftable_stack_compaction_concurrent(void)
{ … }
static void unclean_stack_close(struct reftable_stack *st)
{ … }
static void t_reftable_stack_compaction_concurrent_clean(void)
{ … }
static void t_reftable_stack_read_across_reload(void)
{ … }
static void t_reftable_stack_reload_with_missing_table(void)
{ … }
int cmd_main(int argc UNUSED, const char *argv[] UNUSED)
{ … }