#include "stack.h"
#include "system.h"
#include "reftable-reader.h"
#include "merged.h"
#include "basics.h"
#include "record.h"
#include "test_framework.h"
#include "reftable-tests.h"
#include "reader.h"
#include <sys/types.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 test_read_file(void)
{ … }
static int write_test_ref(struct reftable_writer *wr, void *arg)
{ … }
struct write_log_arg { … };
static int write_test_log(struct reftable_writer *wr, void *arg)
{ … }
static void test_reftable_stack_add_one(void)
{ … }
static void test_reftable_stack_uptodate(void)
{ … }
static void test_reftable_stack_transaction_api(void)
{ … }
static void test_reftable_stack_transaction_api_performs_auto_compaction(void)
{ … }
static void test_reftable_stack_auto_compaction_fails_gracefully(void)
{ … }
static int write_error(struct reftable_writer *wr, void *arg)
{ … }
static void test_reftable_stack_update_index_check(void)
{ … }
static void test_reftable_stack_lock_failure(void)
{ … }
static void test_reftable_stack_add(void)
{ … }
static void test_reftable_stack_log_normalize(void)
{ … }
static void test_reftable_stack_tombstone(void)
{ … }
static void test_reftable_stack_hash_id(void)
{ … }
static void test_suggest_compaction_segment(void)
{ … }
static void test_suggest_compaction_segment_nothing(void)
{ … }
static void test_reflog_expire(void)
{ … }
static int write_nothing(struct reftable_writer *wr, void *arg)
{ … }
static void test_empty_add(void)
{ … }
static int fastlog2(uint64_t sz)
{ … }
static void test_reftable_stack_auto_compaction(void)
{ … }
static void test_reftable_stack_add_performs_auto_compaction(void)
{ … }
static void test_reftable_stack_compaction_concurrent(void)
{ … }
static void unclean_stack_close(struct reftable_stack *st)
{ … }
static void test_reftable_stack_compaction_concurrent_clean(void)
{ … }
int stack_test_main(int argc, const char *argv[])
{ … }