mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 08:47:56 +01:00
Rename some internal test functions.
This commit is contained in:
1 parent
5a7f9e6cde
commit
ac405d485b
3 files changed
+157
-154
No files matched your search
+30
-30
@@ -130,27 +130,27 @@ const char* puffs_zlib_decode(puffs_base_buf1* dst, puffs_base_buf1* src) {
|
||||
|
||||
void test_puffs_flate_decode_256_bytes() {
|
||||
proc_funcname = __func__;
|
||||
test_buf1_buf1(puffs_flate_decode, &flate_256_bytes_gt);
|
||||
do_test_buf1_buf1(puffs_flate_decode, &flate_256_bytes_gt);
|
||||
}
|
||||
|
||||
void test_puffs_flate_decode_midsummer() {
|
||||
proc_funcname = __func__;
|
||||
test_buf1_buf1(puffs_flate_decode, &flate_midsummer_gt);
|
||||
do_test_buf1_buf1(puffs_flate_decode, &flate_midsummer_gt);
|
||||
}
|
||||
|
||||
void test_puffs_flate_decode_pi() {
|
||||
proc_funcname = __func__;
|
||||
test_buf1_buf1(puffs_flate_decode, &flate_pi_gt);
|
||||
do_test_buf1_buf1(puffs_flate_decode, &flate_pi_gt);
|
||||
}
|
||||
|
||||
void test_puffs_flate_decode_romeo() {
|
||||
proc_funcname = __func__;
|
||||
test_buf1_buf1(puffs_flate_decode, &flate_romeo_gt);
|
||||
do_test_buf1_buf1(puffs_flate_decode, &flate_romeo_gt);
|
||||
}
|
||||
|
||||
void test_puffs_flate_decode_romeo_fixed() {
|
||||
proc_funcname = __func__;
|
||||
test_buf1_buf1(puffs_flate_decode, &flate_romeo_fixed_gt);
|
||||
do_test_buf1_buf1(puffs_flate_decode, &flate_romeo_fixed_gt);
|
||||
}
|
||||
|
||||
void test_puffs_flate_decode_split_src() {
|
||||
@@ -498,12 +498,12 @@ void test_puffs_flate_table_redirect() {
|
||||
|
||||
void test_puffs_zlib_decode_midsummer() {
|
||||
proc_funcname = __func__;
|
||||
test_buf1_buf1(puffs_zlib_decode, &zlib_midsummer_gt);
|
||||
do_test_buf1_buf1(puffs_zlib_decode, &zlib_midsummer_gt);
|
||||
}
|
||||
|
||||
void test_puffs_zlib_decode_pi() {
|
||||
proc_funcname = __func__;
|
||||
test_buf1_buf1(puffs_zlib_decode, &zlib_pi_gt);
|
||||
do_test_buf1_buf1(puffs_zlib_decode, &zlib_pi_gt);
|
||||
}
|
||||
|
||||
// ---------------- Mimic Tests
|
||||
@@ -514,47 +514,47 @@ void test_puffs_zlib_decode_pi() {
|
||||
|
||||
void test_mimic_flate_decode_256_bytes() {
|
||||
proc_funcname = __func__;
|
||||
test_buf1_buf1(mimic_flate_decode, &flate_256_bytes_gt);
|
||||
do_test_buf1_buf1(mimic_flate_decode, &flate_256_bytes_gt);
|
||||
}
|
||||
|
||||
void test_mimic_flate_decode_midsummer() {
|
||||
proc_funcname = __func__;
|
||||
test_buf1_buf1(mimic_flate_decode, &flate_midsummer_gt);
|
||||
do_test_buf1_buf1(mimic_flate_decode, &flate_midsummer_gt);
|
||||
}
|
||||
|
||||
void test_mimic_flate_decode_pi() {
|
||||
proc_funcname = __func__;
|
||||
test_buf1_buf1(mimic_flate_decode, &flate_pi_gt);
|
||||
do_test_buf1_buf1(mimic_flate_decode, &flate_pi_gt);
|
||||
}
|
||||
|
||||
void test_mimic_flate_decode_romeo() {
|
||||
proc_funcname = __func__;
|
||||
test_buf1_buf1(mimic_flate_decode, &flate_romeo_gt);
|
||||
do_test_buf1_buf1(mimic_flate_decode, &flate_romeo_gt);
|
||||
}
|
||||
|
||||
void test_mimic_flate_decode_romeo_fixed() {
|
||||
proc_funcname = __func__;
|
||||
test_buf1_buf1(mimic_flate_decode, &flate_romeo_fixed_gt);
|
||||
do_test_buf1_buf1(mimic_flate_decode, &flate_romeo_fixed_gt);
|
||||
}
|
||||
|
||||
void test_mimic_gzip_decode_midsummer() {
|
||||
proc_funcname = __func__;
|
||||
test_buf1_buf1(mimic_gzip_decode, &gzip_midsummer_gt);
|
||||
do_test_buf1_buf1(mimic_gzip_decode, &gzip_midsummer_gt);
|
||||
}
|
||||
|
||||
void test_mimic_gzip_decode_pi() {
|
||||
proc_funcname = __func__;
|
||||
test_buf1_buf1(mimic_gzip_decode, &gzip_pi_gt);
|
||||
do_test_buf1_buf1(mimic_gzip_decode, &gzip_pi_gt);
|
||||
}
|
||||
|
||||
void test_mimic_zlib_decode_midsummer() {
|
||||
proc_funcname = __func__;
|
||||
test_buf1_buf1(mimic_zlib_decode, &zlib_midsummer_gt);
|
||||
do_test_buf1_buf1(mimic_zlib_decode, &zlib_midsummer_gt);
|
||||
}
|
||||
|
||||
void test_mimic_zlib_decode_pi() {
|
||||
proc_funcname = __func__;
|
||||
test_buf1_buf1(mimic_zlib_decode, &zlib_pi_gt);
|
||||
do_test_buf1_buf1(mimic_zlib_decode, &zlib_pi_gt);
|
||||
}
|
||||
|
||||
#endif // PUFFS_MIMIC
|
||||
@@ -563,17 +563,17 @@ void test_mimic_zlib_decode_pi() {
|
||||
|
||||
void bench_puffs_flate_decode_1k() {
|
||||
proc_funcname = __func__;
|
||||
bench_buf1_buf1(puffs_flate_decode, tc_dst, &flate_romeo_gt, 200000);
|
||||
do_bench_buf1_buf1(puffs_flate_decode, tc_dst, &flate_romeo_gt, 200000);
|
||||
}
|
||||
|
||||
void bench_puffs_flate_decode_10k() {
|
||||
proc_funcname = __func__;
|
||||
bench_buf1_buf1(puffs_flate_decode, tc_dst, &flate_midsummer_gt, 30000);
|
||||
do_bench_buf1_buf1(puffs_flate_decode, tc_dst, &flate_midsummer_gt, 30000);
|
||||
}
|
||||
|
||||
void bench_puffs_flate_decode_100k() {
|
||||
proc_funcname = __func__;
|
||||
bench_buf1_buf1(puffs_flate_decode, tc_dst, &flate_pi_gt, 3000);
|
||||
do_bench_buf1_buf1(puffs_flate_decode, tc_dst, &flate_pi_gt, 3000);
|
||||
}
|
||||
|
||||
// ---------------- Mimic Benches
|
||||
@@ -582,57 +582,57 @@ void bench_puffs_flate_decode_100k() {
|
||||
|
||||
void bench_mimic_adler32_10k() {
|
||||
proc_funcname = __func__;
|
||||
bench_buf1_buf1(mimic_adler32, tc_src, &checksum_midsummer_gt, 30000);
|
||||
do_bench_buf1_buf1(mimic_adler32, tc_src, &checksum_midsummer_gt, 30000);
|
||||
}
|
||||
|
||||
void bench_mimic_adler32_100k() {
|
||||
proc_funcname = __func__;
|
||||
bench_buf1_buf1(mimic_adler32, tc_src, &checksum_pi_gt, 3000);
|
||||
do_bench_buf1_buf1(mimic_adler32, tc_src, &checksum_pi_gt, 3000);
|
||||
}
|
||||
|
||||
void bench_mimic_crc32_10k() {
|
||||
proc_funcname = __func__;
|
||||
bench_buf1_buf1(mimic_crc32, tc_src, &checksum_midsummer_gt, 30000);
|
||||
do_bench_buf1_buf1(mimic_crc32, tc_src, &checksum_midsummer_gt, 30000);
|
||||
}
|
||||
|
||||
void bench_mimic_crc32_100k() {
|
||||
proc_funcname = __func__;
|
||||
bench_buf1_buf1(mimic_crc32, tc_src, &checksum_pi_gt, 3000);
|
||||
do_bench_buf1_buf1(mimic_crc32, tc_src, &checksum_pi_gt, 3000);
|
||||
}
|
||||
|
||||
void bench_mimic_flate_decode_1k() {
|
||||
proc_funcname = __func__;
|
||||
bench_buf1_buf1(mimic_flate_decode, tc_dst, &flate_romeo_gt, 200000);
|
||||
do_bench_buf1_buf1(mimic_flate_decode, tc_dst, &flate_romeo_gt, 200000);
|
||||
}
|
||||
|
||||
void bench_mimic_flate_decode_10k() {
|
||||
proc_funcname = __func__;
|
||||
bench_buf1_buf1(mimic_flate_decode, tc_dst, &flate_midsummer_gt, 30000);
|
||||
do_bench_buf1_buf1(mimic_flate_decode, tc_dst, &flate_midsummer_gt, 30000);
|
||||
}
|
||||
|
||||
void bench_mimic_flate_decode_100k() {
|
||||
proc_funcname = __func__;
|
||||
bench_buf1_buf1(mimic_flate_decode, tc_dst, &flate_pi_gt, 3000);
|
||||
do_bench_buf1_buf1(mimic_flate_decode, tc_dst, &flate_pi_gt, 3000);
|
||||
}
|
||||
|
||||
void bench_mimic_gzip_decode_10k() {
|
||||
proc_funcname = __func__;
|
||||
bench_buf1_buf1(mimic_gzip_decode, tc_dst, &gzip_midsummer_gt, 30000);
|
||||
do_bench_buf1_buf1(mimic_gzip_decode, tc_dst, &gzip_midsummer_gt, 30000);
|
||||
}
|
||||
|
||||
void bench_mimic_gzip_decode_100k() {
|
||||
proc_funcname = __func__;
|
||||
bench_buf1_buf1(mimic_gzip_decode, tc_dst, &gzip_pi_gt, 3000);
|
||||
do_bench_buf1_buf1(mimic_gzip_decode, tc_dst, &gzip_pi_gt, 3000);
|
||||
}
|
||||
|
||||
void bench_mimic_zlib_decode_10k() {
|
||||
proc_funcname = __func__;
|
||||
bench_buf1_buf1(mimic_zlib_decode, tc_dst, &zlib_midsummer_gt, 30000);
|
||||
do_bench_buf1_buf1(mimic_zlib_decode, tc_dst, &zlib_midsummer_gt, 30000);
|
||||
}
|
||||
|
||||
void bench_mimic_zlib_decode_100k() {
|
||||
proc_funcname = __func__;
|
||||
bench_buf1_buf1(mimic_zlib_decode, tc_dst, &zlib_pi_gt, 3000);
|
||||
do_bench_buf1_buf1(mimic_zlib_decode, tc_dst, &zlib_pi_gt, 3000);
|
||||
}
|
||||
|
||||
#endif // PUFFS_MIMIC
|
||||
|
||||
Reference in new issue
Block a user