MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TEST

Function TEST

tensorflow/lite/delegates/gpu/gl/gl_buffer_test.cc:30–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28namespace {
29
30TEST(Buffer, Read) {
31 std::unique_ptr<EglEnvironment> env;
32 ASSERT_TRUE(EglEnvironment::NewEglEnvironment(&env).ok());
33 std::vector<float> test = {0, 1, 2, 3};
34 GlBuffer buffer;
35 ASSERT_TRUE(CreateReadOnlyShaderStorageBuffer<float>(test, &buffer).ok());
36 std::vector<float> from_buffer;
37 ASSERT_TRUE(AppendFromBuffer(buffer, &from_buffer).ok());
38 EXPECT_EQ(test, from_buffer);
39}
40
41TEST(Buffer, Write) {
42 std::unique_ptr<EglEnvironment> env;

Callers

nothing calls this directly

Calls 8

AppendFromBufferFunction · 0.85
OkStatusFunction · 0.85
MakeViewMethod · 0.80
CopyBufferFunction · 0.70
okMethod · 0.45
has_ownershipMethod · 0.45
bytes_sizeMethod · 0.45
offsetMethod · 0.45

Tested by

no test coverage detected