From 43449ca7a7da63539092ddb1cf25d81ed763c56e Mon Sep 17 00:00:00 2001 From: Joost Jager Date: Tue, 29 Oct 2019 11:49:07 +0100 Subject: [PATCH] channeldb/migration_01_to_11: add references to untested migrations --- channeldb/migration_01_to_11/migrations_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/channeldb/migration_01_to_11/migrations_test.go b/channeldb/migration_01_to_11/migrations_test.go index cdaef57f..598832c2 100644 --- a/channeldb/migration_01_to_11/migrations_test.go +++ b/channeldb/migration_01_to_11/migrations_test.go @@ -950,3 +950,14 @@ func TestPaymentRouteSerialization(t *testing.T) { MigrateRouteSerialization, false) } + +// TestNotCoveredMigrations only references migrations that are not referenced +// anywhere else in this package. This prevents false positives when linting +// with unused. +func TestNotCoveredMigrations(t *testing.T) { + _ = MigrateNodeAndEdgeUpdateIndex + _ = MigrateInvoiceTimeSeries + _ = MigrateInvoiceTimeSeriesOutgoingPayments + _ = MigrateEdgePolicies + _ = MigratePruneEdgeUpdateIndex +}