diff options
| author | Berke Güzel <wenekar1@gmail.com> | 2026-10-14 17:17:43 +0300 |
|---|---|---|
| committer | Berke Güzel <wenekar1@gmail.com> | 2026-10-14 17:17:43 +0300 |
| commit | 513bf031a589d9e2a1a2730adf56f95e5e316a06 (patch) | |
| tree | 66ef6b095e6aa00c790ac37705fb9df3b099b92a /tests/hist_test.c | |
| parent | 234dd752dc2e15afab38cbbf78f8aa32be72ea5f (diff) | |
Remove unused private functions and inline trivial helpers
Diffstat (limited to 'tests/hist_test.c')
| -rw-r--r-- | tests/hist_test.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/hist_test.c b/tests/hist_test.c index f05c279..d772c5a 100644 --- a/tests/hist_test.c +++ b/tests/hist_test.c @@ -638,9 +638,8 @@ static void test_fuzz_rows(void) static void test_large_wide_count(void) { struct hist h; - struct hist_view view; + struct hist_view view = {0}; assert(term_hist_init(&h, 600, 4 * HIST_PAGE_SIZE)); - term_hist_view_init(&view); struct cell row[4] = { dc('A'), dc(0x65e5), dc(0), dc('B') }; row[1].flags = CELL_WIDE; row[2].flags = CELL_TRAIL; @@ -669,9 +668,8 @@ static void test_large_wide_count(void) static void test_view_after_prefix_eviction(void) { struct hist h; - struct hist_view view; + struct hist_view view = {0}; assert(term_hist_init(&h, 10, 2 * HIST_PAGE_SIZE)); - term_hist_view_init(&view); char bytes[1000]; for (int i = 0; i < 100; i++) { memset(bytes, 'A' + i % 26, sizeof(bytes)); |
