mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-17 06:15:47 +01:00
rewrite testing code to be a bit more durable and clean.
This commit is contained in:
19
test/test_conf.h
Normal file
19
test/test_conf.h
Normal file
@@ -0,0 +1,19 @@
|
||||
/* Copyright (c) 2025 Quinn
|
||||
* Licensed under the MIT Licence. See LICENSE for details */
|
||||
#pragma once
|
||||
|
||||
#include "../src/util/conf.h"
|
||||
#include "../src/util/intdef.h"
|
||||
|
||||
void test_conf_procbuf(const char *restrict buf, const char *restrict expect_key, const char *restrict expect_val, int expect_return);
|
||||
void test_conf_matchopt(struct conf_entry *restrict opts, size_t optc, const char *restrict key, int expect_index);
|
||||
void test_conf_procval_int(const char *val, u64 expect_value, int type);
|
||||
void test_conf_procval_f32(const char *val, f32 expect_value);
|
||||
void test_conf_procval_fstr(const char *val, u64 expect_value, int type);
|
||||
void test_conf_procval_str(const char *val, u64 expect_value, int type);
|
||||
void test_procval_str(void);
|
||||
void test_procval_str_predef(void);
|
||||
void test_procval_fstr(void);
|
||||
void test_procval_fstr_trunc(void);
|
||||
void test_procval_eparse(void);
|
||||
void test_conf_getpat(void);
|
||||
Reference in New Issue
Block a user