Lines Matching refs:text

80 				  ptr_assert->text);  in kunit_ptr_not_err_assert_format()
84 ptr_assert->text, in kunit_ptr_not_err_assert_format()
92 static bool is_literal(struct kunit *test, const char *text, long long value, in is_literal() argument
100 if (strlen(text) != len) in is_literal()
108 ret = strncmp(buffer, text, len) == 0; in is_literal()
125 binary_assert->text->left_text, in kunit_binary_assert_format()
126 binary_assert->text->operation, in kunit_binary_assert_format()
127 binary_assert->text->right_text); in kunit_binary_assert_format()
128 if (!is_literal(stream->test, binary_assert->text->left_text, in kunit_binary_assert_format()
131 binary_assert->text->left_text, in kunit_binary_assert_format()
134 if (!is_literal(stream->test, binary_assert->text->right_text, in kunit_binary_assert_format()
137 binary_assert->text->right_text, in kunit_binary_assert_format()
155 binary_assert->text->left_text, in kunit_binary_ptr_assert_format()
156 binary_assert->text->operation, in kunit_binary_ptr_assert_format()
157 binary_assert->text->right_text); in kunit_binary_ptr_assert_format()
159 binary_assert->text->left_text, in kunit_binary_ptr_assert_format()
162 binary_assert->text->right_text, in kunit_binary_ptr_assert_format()
171 static bool is_str_literal(const char *text, const char *value) in is_str_literal() argument
175 len = strlen(text); in is_str_literal()
178 if (text[0] != '\"' || text[len - 1] != '\"') in is_str_literal()
181 return strncmp(text + 1, value, len - 2) == 0; in is_str_literal()
195 binary_assert->text->left_text, in kunit_binary_str_assert_format()
196 binary_assert->text->operation, in kunit_binary_str_assert_format()
197 binary_assert->text->right_text); in kunit_binary_str_assert_format()
198 if (!is_str_literal(binary_assert->text->left_text, binary_assert->left_value)) in kunit_binary_str_assert_format()
200 binary_assert->text->left_text, in kunit_binary_str_assert_format()
202 if (!is_str_literal(binary_assert->text->right_text, binary_assert->right_value)) in kunit_binary_str_assert_format()
204 binary_assert->text->right_text, in kunit_binary_str_assert_format()
247 mem_assert->text->left_text); in kunit_mem_assert_format()
251 mem_assert->text->right_text); in kunit_mem_assert_format()
255 mem_assert->text->left_text, in kunit_mem_assert_format()
256 mem_assert->text->operation, in kunit_mem_assert_format()
257 mem_assert->text->right_text); in kunit_mem_assert_format()
260 mem_assert->text->left_text); in kunit_mem_assert_format()
267 mem_assert->text->right_text); in kunit_mem_assert_format()