xref: /5.5.2/couchstore/tests/views/tests.cc (revision 6ef489f3)
1/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2
3/**
4 * @copyright 2013 Couchbase, Inc.
5 *
6 * @author Filipe Manana  <filipe@couchbase.com>
7 *
8 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
9 * use this file except in compliance with the License. You may obtain a copy of
10 * the License at
11 *
12 *  http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
17 * License for the specific language governing permissions and limitations under
18 * the License.
19 **/
20
21#include "view_tests.h"
22#include "spatial_tests.h"
23
24
25void view_tests()
26{
27    fprintf(stderr, "\n\nRunning view tests\n\n");
28
29    test_bitmaps();
30    test_sorted_lists();
31    test_collate_json();
32    test_index_headers_v1();
33    test_index_headers_v2();
34    test_reductions();
35    test_keys();
36    test_values();
37    reducer_tests();
38    cleanup_tests();
39
40    /* spatial tests */
41    test_interleaving();
42    test_spatial_scale_factor();
43    test_spatial_center();
44    test_spatial_scale_point();
45    test_set_bit_sized();
46    test_encode_spatial_key();
47    test_decode_spatial_key();
48    test_expand_mbb();
49    test_view_spatial_reduce();
50}
51