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

Function TEST_P

tensorflow/lite/kernels/reshape_test.cc:126–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124};
125
126TEST_P(ReshapeOpTest, MismatchedDimensions) {
127 if (GetParam() == kAsTensor) {
128 ReshapeOpModel<float> m({1, 2, 4, 1}, {2}, {2, 1}, GetParam());
129 m.SetInput({3});
130 EXPECT_NE(m.InvokeUnchecked(), kTfLiteOk)
131 << "num_input_elements != num_output_elements";
132 } else {
133#ifdef GTEST_HAS_DEATH_TEST
134 EXPECT_DEATH(ReshapeOpModel<float>({1, 2, 4, 1}, {2}, {2, 1}, GetParam()),
135 "num_input_elements != num_output_elements");
136#endif
137 }
138}
139
140TEST_P(ReshapeOpTest, TooManyDimensions) {
141#ifdef GTEST_HAS_DEATH_TEST

Callers

nothing calls this directly

Calls 9

GetParamFunction · 0.85
EXPECT_DEATHFunction · 0.85
IsEmptyFunction · 0.85
InvokeUncheckedMethod · 0.80
SetInputMethod · 0.45
InvokeMethod · 0.45
GetOutputShapeMethod · 0.45
GetOutputMethod · 0.45
SetStringInputMethod · 0.45

Tested by

no test coverage detected