Lines Matching +full:data +full:- +full:path
73 const char * path = CreatePath("key-test-empty", INPUT_DIR); in test_ReadEmptyKeyFile() local
75 TEST_ASSERT_NOT_NULL(path); in test_ReadEmptyKeyFile()
76 TEST_ASSERT_EQUAL(0, auth_init(path, &keys)); in test_ReadEmptyKeyFile()
79 DestroyPath(path); in test_ReadEmptyKeyFile()
88 const char * path = CreatePath("key-test-ascii", INPUT_DIR); in test_ReadASCIIKeys() local
90 TEST_ASSERT_NOT_NULL(path); in test_ReadASCIIKeys()
91 TEST_ASSERT_EQUAL(2, auth_init(path, &keys)); in test_ReadASCIIKeys()
94 DestroyPath(path); in test_ReadASCIIKeys()
112 const char * path = CreatePath("key-test-hex", INPUT_DIR); in test_ReadHexKeys() local
116 TEST_ASSERT_NOT_NULL(path); in test_ReadHexKeys()
117 TEST_ASSERT_EQUAL(3, auth_init(path, &keys)); in test_ReadHexKeys()
119 DestroyPath(path); in test_ReadHexKeys()
147 const char * path = CreatePath("key-test-comments", INPUT_DIR); in test_ReadKeyFileWithComments() local
148 char data[15]; in test_ReadKeyFileWithComments() local
150 TEST_ASSERT_NOT_NULL(path); in test_ReadKeyFileWithComments()
151 TEST_ASSERT_EQUAL(2, auth_init(path, &keys)); in test_ReadKeyFileWithComments()
153 DestroyPath(path); in test_ReadKeyFileWithComments()
158 memset(data, 0x01, 15); in test_ReadKeyFileWithComments()
159 TEST_ASSERT_TRUE(CompareKeysAlternative(10, 15, "MD5", data, *result)); in test_ReadKeyFileWithComments()
173 const char * path = CreatePath("key-test-invalid-hex", INPUT_DIR); in test_ReadKeyFileWithInvalidHex() local
174 char data[15]; in test_ReadKeyFileWithInvalidHex() local
176 TEST_ASSERT_NOT_NULL(path); in test_ReadKeyFileWithInvalidHex()
177 TEST_ASSERT_EQUAL(1, auth_init(path, &keys)); in test_ReadKeyFileWithInvalidHex()
179 DestroyPath(path); in test_ReadKeyFileWithInvalidHex()
184 memset(data, 0x01, 15); in test_ReadKeyFileWithInvalidHex()
185 TEST_ASSERT_TRUE(CompareKeysAlternative(10, 15, "MD5", data, *result)); in test_ReadKeyFileWithInvalidHex()