.
This commit is contained in:
parent
8f1ba8130c
commit
1fe7d3c56d
8 changed files with 410 additions and 4 deletions
20
tests/PgsqlTests/tst_Pgsql_oids.cpp
Normal file
20
tests/PgsqlTests/tst_Pgsql_oids.cpp
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#include <gtest/gtest.h>
|
||||
#include <gmock/gmock-matchers.h>
|
||||
#include "Pgsql_oids.h"
|
||||
#include "PrintTo_Qt.h"
|
||||
|
||||
using namespace testing;
|
||||
using namespace Pgsql;
|
||||
|
||||
TEST(Pgsql_Oids, ElemOidFromArrayOid)
|
||||
{
|
||||
Oid elem = ElemOidFromArrayOid(varchar_array_oid);
|
||||
ASSERT_EQ(elem, varchar_oid);
|
||||
}
|
||||
|
||||
TEST(Pgsql_Oids, ArrayOidFromElemOid)
|
||||
{
|
||||
Oid elem = ArrayOidFromElemOid(timestamptz_oid);
|
||||
ASSERT_EQ(elem, timestamptz_array_oid);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue