• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2023 Google LLC.  All rights reserved.
3 //
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file or at
6 // https://developers.google.com/open-source/licenses/bsd
7 
8 #include "upb/wire/eps_copy_input_stream.h"
9 
10 #include <string.h>
11 
12 #include <string>
13 
14 #include <gtest/gtest.h>
15 #include "upb/mem/arena.hpp"
16 
17 namespace {
18 
TEST(EpsCopyInputStreamTest,ZeroSize)19 TEST(EpsCopyInputStreamTest, ZeroSize) {
20   upb_EpsCopyInputStream stream;
21   const char* ptr = nullptr;
22   upb_EpsCopyInputStream_Init(&stream, &ptr, 0, false);
23   EXPECT_TRUE(
24       upb_EpsCopyInputStream_IsDoneWithCallback(&stream, &ptr, nullptr));
25 }
26 
27 }  // namespace
28