Skip to content

Commit 3a77c2a

Browse files
tmp
1 parent de5a03b commit 3a77c2a

File tree

3 files changed

+2
-47
lines changed

3 files changed

+2
-47
lines changed

EndToEndTestsLegacy/Makefile

-27
This file was deleted.

EndToEndTestsLegacy/NpgsqlDapperTester.cs

+1-19
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
namespace SqlcGenCsharpTests
1010
{
11-
public class NpgsqlDapperTests : IExecLastIdTester
11+
public partial class NpgsqlDapperTester : IExecLastIdTester
1212
{
1313
private QuerySql QuerySql { get; } = new QuerySql(
1414
Environment.GetEnvironmentVariable(EndToEndCommon.PostgresConnectionStringEnv));
@@ -143,29 +143,11 @@ private static bool Equals(QuerySql.GetNodePostgresTypeRow x, QuerySql.GetNodePo
143143
x.CIntegerArray.SequenceEqual(y.CIntegerArray);
144144
}
145145

146-
private static bool Equals(QuerySql.GetAuthorRow x, QuerySql.GetAuthorRow y)
147-
{
148-
return x.Name.Equals(y.Name) && x.Bio.Equals(y.Bio);
149-
}
150-
151146
private static bool Equals(QuerySql.GetAuthorByIdRow x, QuerySql.GetAuthorByIdRow y)
152147
{
153148
return x.Id.Equals(y.Id) && x.Name.Equals(y.Name) && x.Bio.Equals(y.Bio);
154149
}
155150

156-
private static bool Equals(QuerySql.ListAuthorsRow x, QuerySql.ListAuthorsRow y)
157-
{
158-
return x.Name.Equals(y.Name) && x.Bio.Equals(y.Bio);
159-
}
160-
161-
private static bool SequenceEquals(List<QuerySql.ListAuthorsRow> x, List<QuerySql.ListAuthorsRow> y)
162-
{
163-
if (x.Count != y.Count) return false;
164-
x = x.OrderBy<QuerySql.ListAuthorsRow, object>(o => o.Name + o.Bio).ToList();
165-
y = y.OrderBy<QuerySql.ListAuthorsRow, object>(o => o.Name + o.Bio).ToList();
166-
return !x.Where((t, i) => !Equals(t, y[i])).Any();
167-
}
168-
169151
private static bool Equals(QuerySql.SelectAuthorsWithSliceRow x, QuerySql.SelectAuthorsWithSliceRow y)
170152
{
171153
return x.Name.Equals(y.Name) && x.Bio.Equals(y.Bio);

EndToEndTestsLegacy/SqliteDapperTester.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
namespace SqlcGenCsharpTests
1010
{
11-
public partial class SqliteDapperTests : IExecLastIdTester
11+
public partial class SqliteDapperTester : IExecLastIdTester
1212
{
1313
private QuerySql QuerySql { get; } = new QuerySql(
1414
Environment.GetEnvironmentVariable(EndToEndCommon.SqliteConnectionStringEnv));

0 commit comments

Comments
 (0)