git/reftable/test_framework.h

/*
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
*/

#ifndef TEST_FRAMEWORK_H
#define TEST_FRAMEWORK_H

#include "system.h"
#include "reftable-error.h"

#define EXPECT_ERR(c)

#define EXPECT_STREQ(a, b)

#define EXPECT(c)

#define RUN_TEST(f)

void set_test_hash(uint8_t *p, int i);

/* Like strbuf_add, but suitable for passing to reftable_new_writer
 */
ssize_t strbuf_add_void(void *b, const void *data, size_t sz);

int noop_flush(void *);

#endif