MCPcopy Create free account
hub / github.com/boutproject/BOUT-dev / TEST

Function TEST

tests/unit/sys/test_utils.cxx:7–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <string>
6
7TEST(MatrixTest, DefaultShape) {
8 Matrix<int> matrix;
9
10 int shape0, shape1;
11 std::tie(shape0, shape1) = matrix.shape();
12 EXPECT_EQ(shape0, 0);
13 EXPECT_EQ(shape1, 0);
14}
15
16TEST(MatrixTest, CreateGivenSize) {
17 Matrix<int> matrix(3, 5);

Callers

nothing calls this directly

Calls 15

matrixFunction · 0.85
copy_stringFunction · 0.85
lowercaseFunction · 0.85
lowercasequoteFunction · 0.85
stringToRealFunction · 0.85
stringToIntFunction · 0.85
strsplitFunction · 0.85
trimFunction · 0.85
trimRightFunction · 0.85
trimLeftFunction · 0.85
trimCommentsFunction · 0.85
editDistanceFunction · 0.85

Tested by

no test coverage detected