/* Pipes with no buffer or size 0 should return 0 bytes available. 
If either of those conditions is true, then k_pipe_read_avail and k_pipe_write_avail should return 0. */
ZTEST(pipe_api, test_pipe_avail_no_buffer)
/* Pipes with no buffer or size 0 should return 0 bytes available. 
If either of those conditions is true, then k_pipe_read_avail and k_pipe_write_avail should return 0. */
ZTEST(pipe_api, test_pipe_avail_no_buffer)
{
	size_t r_avail;
	size_t w_avail;
	r_avail = k_pipe_read_avail(&bufferless);
	zassert_equal(r_avail, 0, "read: expected: 0 actual: %u", r_avail);
	w_avail = k_pipe_write_avail(&bufferless);
	zassert_equal(w_avail, 0, "write: expected: 0 actual: %u", w_avail);
	r_avail = k_pipe_read_avail(&bufferless1);
	zassert_equal(r_avail, 0, "read: expected: 0 actual: %u", r_avail);
	w_avail = k_pipe_write_avail(&bufferless1);
	zassert_equal(w_avail, 0, "write: expected: 0 actual: %u", w_avail);
}