Lines Matching refs:result
87 struct key * result = NULL; in test_ReadASCIIKeys() local
96 get_key(40, &result); in test_ReadASCIIKeys()
97 TEST_ASSERT_NOT_NULL(result); in test_ReadASCIIKeys()
98 TEST_ASSERT_TRUE(CompareKeysAlternative(40, 11, "MD5", "asciikeyTwo", *result)); in test_ReadASCIIKeys()
100 result = NULL; in test_ReadASCIIKeys()
101 get_key(50, &result); in test_ReadASCIIKeys()
102 TEST_ASSERT_NOT_NULL(result); in test_ReadASCIIKeys()
103 TEST_ASSERT_TRUE(CompareKeysAlternative(50, 11, "MD5", "asciikeyOne", *result)); in test_ReadASCIIKeys()
111 struct key * result = NULL; in test_ReadHexKeys() local
121 get_key(10, &result); in test_ReadHexKeys()
122 TEST_ASSERT_NOT_NULL(result); in test_ReadHexKeys()
124 "\x01\x23\x45\x67\x89\xab\xcd\xef\x01\x23\x45\x67\x89", *result)); in test_ReadHexKeys()
126 result = NULL; in test_ReadHexKeys()
127 get_key(20, &result); in test_ReadHexKeys()
128 TEST_ASSERT_NOT_NULL(result); in test_ReadHexKeys()
131 TEST_ASSERT_TRUE(CompareKeysAlternative(20, 15, "MD5", data1, *result)); in test_ReadHexKeys()
133 result = NULL; in test_ReadHexKeys()
134 get_key(30, &result); in test_ReadHexKeys()
135 TEST_ASSERT_NOT_NULL(result); in test_ReadHexKeys()
138 TEST_ASSERT_TRUE(CompareKeysAlternative(30, 13, "MD5", data2, *result)); in test_ReadHexKeys()
146 struct key * result = NULL; in test_ReadKeyFileWithComments() local
155 get_key(10, &result); in test_ReadKeyFileWithComments()
156 TEST_ASSERT_NOT_NULL(result); in test_ReadKeyFileWithComments()
159 TEST_ASSERT_TRUE(CompareKeysAlternative(10, 15, "MD5", data, *result)); in test_ReadKeyFileWithComments()
161 result = NULL; in test_ReadKeyFileWithComments()
162 get_key(34, &result); in test_ReadKeyFileWithComments()
163 TEST_ASSERT_NOT_NULL(result); in test_ReadKeyFileWithComments()
164 TEST_ASSERT_TRUE(CompareKeysAlternative(34, 3, "MD5", "xyz", *result)); in test_ReadKeyFileWithComments()
172 struct key * result = NULL; in test_ReadKeyFileWithInvalidHex() local
181 get_key(10, &result); in test_ReadKeyFileWithInvalidHex()
182 TEST_ASSERT_NOT_NULL(result); in test_ReadKeyFileWithInvalidHex()
185 TEST_ASSERT_TRUE(CompareKeysAlternative(10, 15, "MD5", data, *result)); in test_ReadKeyFileWithInvalidHex()
187 result = NULL; in test_ReadKeyFileWithInvalidHex()
188 get_key(30, &result); /* Should not exist, and result should remain NULL. */ in test_ReadKeyFileWithInvalidHex()
189 TEST_ASSERT_NULL(result); in test_ReadKeyFileWithInvalidHex()