Lines Matching refs:result
105 char *result;
109 result = strchr(test_string, test_string[i]);
110 KUNIT_ASSERT_EQ_MSG(test, result - test_string, i,
114 result = strchr(empty_string, '\0');
115 KUNIT_ASSERT_PTR_EQ(test, result, empty_string);
117 result = strchr(empty_string, 'a');
118 KUNIT_ASSERT_NULL(test, result);
120 result = strchr(test_string, 'z');
121 KUNIT_ASSERT_NULL(test, result);
128 char *result;
133 result = strnchr(test_string, j, test_string[i]);
135 KUNIT_ASSERT_NULL_MSG(test, result,
138 KUNIT_ASSERT_EQ_MSG(test, result - test_string, i,
144 result = strnchr(empty_string, 0, '\0');
145 KUNIT_ASSERT_NULL(test, result);
147 result = strnchr(empty_string, 1, '\0');
148 KUNIT_ASSERT_PTR_EQ(test, result, empty_string);
150 result = strnchr(empty_string, 1, 'a');
151 KUNIT_ASSERT_NULL(test, result);
153 result = strnchr(NULL, 0, '\0');
154 KUNIT_ASSERT_NULL(test, result);