nxt_lvlhsh_test.c (595:686246c79c5a) nxt_lvlhsh_test.c (598:70677ad404c1)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8#include "nxt_tests.h"

--- 173 unchanged lines hidden (view full) ---

182 for (i = 0; i < n; i++) {
183 key = nxt_murmur_hash2(&key, sizeof(uint32_t));
184
185 if (nxt_lvlhsh_test_get(&lh, proto, key) != NXT_OK) {
186 return NXT_ERROR;
187 }
188 }
189
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8#include "nxt_tests.h"

--- 173 unchanged lines hidden (view full) ---

182 for (i = 0; i < n; i++) {
183 key = nxt_murmur_hash2(&key, sizeof(uint32_t));
184
185 if (nxt_lvlhsh_test_get(&lh, proto, key) != NXT_OK) {
186 return NXT_ERROR;
187 }
188 }
189
190 nxt_memzero(&lhe, sizeof(nxt_lvlhsh_each_t));
191 lhe.proto = proto;
190 nxt_lvlhsh_each_init(&lhe, proto);
192
193 for (i = 0; i < n + 1; i++) {
194 if (nxt_lvlhsh_each(&lh, &lhe) == NULL) {
195 break;
196 }
197 }
198
199 if (i != n) {

--- 79 unchanged lines hidden ---
191
192 for (i = 0; i < n + 1; i++) {
193 if (nxt_lvlhsh_each(&lh, &lhe) == NULL) {
194 break;
195 }
196 }
197
198 if (i != n) {

--- 79 unchanged lines hidden ---