diff options
author | Colin Walters <walters@verbum.org> | 2023-05-01 14:24:29 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2023-05-02 08:42:19 -0400 |
commit | 453aed97f688c606622562145fa1f7c10096ba14 (patch) | |
tree | 8059e3887665735f14b31a44402d5d578fcdd876 /tests/test-bloom.c | |
parent | a917813bb82b6ec7083da24064439b656971748d (diff) | |
download | ostree-453aed97f688c606622562145fa1f7c10096ba14.tar.gz |
tree-wide: Run clang-format
This is a one-time tree wide reformatting to ensure consistency
going forward.
Diffstat (limited to 'tests/test-bloom.c')
-rw-r--r-- | tests/test-bloom.c | 37 |
1 files changed, 15 insertions, 22 deletions
diff --git a/tests/test-bloom.c b/tests/test-bloom.c index 970a882f..93f46ebf 100644 --- a/tests/test-bloom.c +++ b/tests/test-bloom.c @@ -31,8 +31,8 @@ static void test_bloom_init (void) { - g_autoptr(OstreeBloom) bloom = NULL; - g_autoptr(GBytes) bytes = NULL; + g_autoptr (OstreeBloom) bloom = NULL; + g_autoptr (GBytes) bytes = NULL; bloom = ostree_bloom_new (1, 1, ostree_str_bloom_hash); g_assert_cmpuint (ostree_bloom_get_size (bloom), ==, 1); @@ -53,18 +53,12 @@ test_bloom_init (void) static void test_bloom_construction (void) { - g_autoptr(OstreeBloom) bloom = NULL; - g_autoptr(OstreeBloom) immutable_bloom = NULL; - g_autoptr(GBytes) bytes = NULL; + g_autoptr (OstreeBloom) bloom = NULL; + g_autoptr (OstreeBloom) immutable_bloom = NULL; + g_autoptr (GBytes) bytes = NULL; gsize i; - const gchar *members[] = - { - "hello", "there", "these", "are", "test", "strings" - }; - const gchar *non_members[] = - { - "not", "an", "element" - }; + const gchar *members[] = { "hello", "there", "these", "are", "test", "strings" }; + const gchar *non_members[] = { "not", "an", "element" }; const gsize n_bytes = 256; const guint8 k = 8; const OstreeBloomHashFunc hash = ostree_str_bloom_hash; @@ -94,7 +88,7 @@ test_bloom_construction (void) static void test_bloom_empty (void) { - g_autoptr(OstreeBloom) bloom = NULL; + g_autoptr (OstreeBloom) bloom = NULL; const gsize n_bytes = 256; const guint8 k = 8; const OstreeBloomHashFunc hash = ostree_str_bloom_hash; @@ -111,12 +105,9 @@ test_bloom_empty (void) static void test_bloom_membership_during_construction (void) { - g_autoptr(OstreeBloom) bloom = NULL; + g_autoptr (OstreeBloom) bloom = NULL; gsize i, j; - const gchar *members[] = - { - "hello", "there", "these", "are", "test", "strings" - }; + const gchar *members[] = { "hello", "there", "these", "are", "test", "strings" }; const gsize n_bytes = 256; const guint8 k = 8; const OstreeBloomHashFunc hash = ostree_str_bloom_hash; @@ -140,14 +131,16 @@ test_bloom_membership_during_construction (void) } } -int main (int argc, char **argv) +int +main (int argc, char **argv) { g_test_init (&argc, &argv, NULL); g_test_add_func ("/bloom/init", test_bloom_init); g_test_add_func ("/bloom/construction", test_bloom_construction); g_test_add_func ("/bloom/empty", test_bloom_empty); - g_test_add_func ("/bloom/membership-during-construction", test_bloom_membership_during_construction); + g_test_add_func ("/bloom/membership-during-construction", + test_bloom_membership_during_construction); - return g_test_run(); + return g_test_run (); } |