Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
grn-test-hash-assertions.h
Go to the documentation of this file.
1 /* -*- c-basic-offset: 2; coding: utf-8 -*- */
2 /*
3  Copyright (C) 2008-2009 Kouhei Sutou <kou@cozmixng.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License version 2.1 as published by the Free Software Foundation.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Lesser General Public License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 #ifndef __GRN_TEST_HASH_ASSERTIONS_H__
20 #define __GRN_TEST_HASH_ASSERTIONS_H__
21 
22 #include "grn-assertions.h"
23 #include "grn-test-hash-factory.h"
24 
25 #define grn_test_assert_create_hash(hash, factory) \
26  cut_trace_with_info_expression( \
27  grn_test_assert_create_hash_helper(hash, factory), \
28  grn_test_assert_create_hash(hash, factory))
29 
30 #define grn_test_assert_open_hash(hash, factory) \
31  cut_trace_with_info_expression( \
32  grn_test_assert_open_hash_helper(hash, factory), \
33  grn_test_assert_open_hash(hash, factory))
34 
35 #define grn_test_assert_fail_open_hash(hash, factory) \
36  cut_trace_with_info_expression( \
37  grn_test_assert_fail_open_hash_helper(hash, factory), \
38  grn_test_assert_fail_open_hash(hash, factory))
39 
40 
42  GrnTestHashFactory *factory);
44  GrnTestHashFactory *factory);
46  GrnTestHashFactory *factory);
47 
48 #endif