Lines Matching full:text

80 				  ptr_assert->text);  in kunit_ptr_not_err_assert_format()
84 ptr_assert->text, in kunit_ptr_not_err_assert_format()
91 /* Checks if `text` is a literal representing `value`, e.g. "5" and 5 */
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()
133 if (!is_literal(stream->test, binary_assert->text->right_text, in kunit_binary_assert_format()
136 binary_assert->text->right_text, in kunit_binary_assert_format()
153 binary_assert->text->left_text, in kunit_binary_ptr_assert_format()
154 binary_assert->text->operation, in kunit_binary_ptr_assert_format()
155 binary_assert->text->right_text); in kunit_binary_ptr_assert_format()
157 binary_assert->text->left_text, in kunit_binary_ptr_assert_format()
160 binary_assert->text->right_text, in kunit_binary_ptr_assert_format()
167 * Note: `text` will have ""s where as `value` will not.
169 static bool is_str_literal(const char *text, const char *value) in is_str_literal() argument
173 len = strlen(text); in is_str_literal()
176 if (text[0] != '\"' || text[len - 1] != '\"') in is_str_literal()
179 return strncmp(text + 1, value, len - 2) == 0; in is_str_literal()
193 binary_assert->text->left_text, in kunit_binary_str_assert_format()
194 binary_assert->text->operation, in kunit_binary_str_assert_format()
195 binary_assert->text->right_text); in kunit_binary_str_assert_format()
196 if (!is_str_literal(binary_assert->text->left_text, binary_assert->left_value)) in kunit_binary_str_assert_format()
198 binary_assert->text->left_text, in kunit_binary_str_assert_format()
200 if (!is_str_literal(binary_assert->text->right_text, binary_assert->right_value)) in kunit_binary_str_assert_format()
202 binary_assert->text->right_text, in kunit_binary_str_assert_format()