Helper functions defined in `t/unit-tests/lib-reftable.{c,h}` are
required for the reftable-related test files to run. In the current
implementation these functions are designed to conform with our
homegrown unit-testing structure. So in other to convert the reftable
test files, there is need for a clar specific implementation of these
helper functions.
Implement equivalent helper functions in `lib-reftable-clar.{c,h}` to
use clar. These functions conform with the clar testing framework and
become available for all reftable-related test files implemented using
the clar testing framework, which requires them. This will be used by
subsequent commits.
Signed-off-by: Seyi Kuforiji <kuforiji98@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
21 lines
612 B
C
21 lines
612 B
C
#include "git-compat-util.h"
|
|
#include "clar/clar.h"
|
|
#include "clar-decls.h"
|
|
#include "git-compat-util.h"
|
|
#include "reftable/reftable-writer.h"
|
|
#include "strbuf.h"
|
|
|
|
struct reftable_buf;
|
|
|
|
void cl_reftable_set_hash(uint8_t *p, int i, enum reftable_hash id);
|
|
|
|
struct reftable_writer *cl_reftable_strbuf_writer(struct reftable_buf *buf,
|
|
struct reftable_write_options *opts);
|
|
|
|
void cl_reftable_write_to_buf(struct reftable_buf *buf,
|
|
struct reftable_ref_record *refs,
|
|
size_t nrecords,
|
|
struct reftable_log_record *logs,
|
|
size_t nlogs,
|
|
struct reftable_write_options *opts);
|