Skip to content

Commit a86725e

Browse files
committed
Updated style [skip ci]
1 parent 16f6a1d commit a86725e

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

test/pqxx_test.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212

1313
#include "helper.hpp"
1414

15-
void setup(pqxx::connection &conn) {
15+
void setup(pqxx::connection& conn) {
1616
pqxx::nontransaction tx{conn};
1717
tx.exec("CREATE EXTENSION IF NOT EXISTS vector");
1818
tx.exec("DROP TABLE IF EXISTS items");
1919
tx.exec("CREATE TABLE items (id serial PRIMARY KEY, embedding vector(3), half_embedding halfvec(3), binary_embedding bit(3), sparse_embedding sparsevec(3))");
2020
}
2121

22-
void before_each(pqxx::connection &conn) {
22+
void before_each(pqxx::connection& conn) {
2323
pqxx::nontransaction tx{conn};
2424
tx.exec("TRUNCATE items");
2525
}
@@ -32,7 +32,7 @@ std::optional<std::string_view> float_error([[maybe_unused]] std::string_view me
3232
#endif
3333
}
3434

35-
void test_vector(pqxx::connection &conn) {
35+
void test_vector(pqxx::connection& conn) {
3636
before_each(conn);
3737

3838
pqxx::nontransaction tx{conn};
@@ -47,7 +47,7 @@ void test_vector(pqxx::connection &conn) {
4747
assert_equal(res.at(2).at(0).as<std::optional<pgvector::Vector>>().has_value(), false);
4848
}
4949

50-
void test_halfvec(pqxx::connection &conn) {
50+
void test_halfvec(pqxx::connection& conn) {
5151
before_each(conn);
5252

5353
pqxx::nontransaction tx{conn};
@@ -62,7 +62,7 @@ void test_halfvec(pqxx::connection &conn) {
6262
assert_equal(res.at(2).at(0).as<std::optional<pgvector::HalfVector>>().has_value(), false);
6363
}
6464

65-
void test_bit(pqxx::connection &conn) {
65+
void test_bit(pqxx::connection& conn) {
6666
before_each(conn);
6767

6868
pqxx::nontransaction tx{conn};
@@ -77,7 +77,7 @@ void test_bit(pqxx::connection &conn) {
7777
assert_equal(res.at(2).at(0).as<std::optional<std::string>>().has_value(), false);
7878
}
7979

80-
void test_sparsevec(pqxx::connection &conn) {
80+
void test_sparsevec(pqxx::connection& conn) {
8181
before_each(conn);
8282

8383
pqxx::nontransaction tx{conn};
@@ -92,7 +92,7 @@ void test_sparsevec(pqxx::connection &conn) {
9292
assert_equal(res.at(2).at(0).as<std::optional<pgvector::SparseVector>>().has_value(), false);
9393
}
9494

95-
void test_sparsevec_nnz(pqxx::connection &conn) {
95+
void test_sparsevec_nnz(pqxx::connection& conn) {
9696
before_each(conn);
9797

9898
pqxx::nontransaction tx{conn};
@@ -103,7 +103,7 @@ void test_sparsevec_nnz(pqxx::connection &conn) {
103103
}, "sparsevec cannot have more than 16000 dimensions");
104104
}
105105

106-
void test_stream(pqxx::connection &conn) {
106+
void test_stream(pqxx::connection& conn) {
107107
before_each(conn);
108108

109109
pqxx::nontransaction tx{conn};
@@ -117,7 +117,7 @@ void test_stream(pqxx::connection &conn) {
117117
assert_equal(count, 1);
118118
}
119119

120-
void test_stream_to(pqxx::connection &conn) {
120+
void test_stream_to(pqxx::connection& conn) {
121121
before_each(conn);
122122

123123
pqxx::nontransaction tx{conn};
@@ -130,7 +130,7 @@ void test_stream_to(pqxx::connection &conn) {
130130
assert_equal(res.at(1).at(0).as<std::string>(), "[4,5,6]");
131131
}
132132

133-
void test_precision(pqxx::connection &conn) {
133+
void test_precision(pqxx::connection& conn) {
134134
before_each(conn);
135135

136136
pqxx::nontransaction tx{conn};

0 commit comments

Comments
 (0)