• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lightningnetwork / lnd / 16287401367

15 Jul 2025 07:52AM UTC coverage: 67.349% (+0.01%) from 67.339%
16287401367

push

github

web-flow
Merge pull request #10071 from ellemouton/graphSQLMigPlugIn

lnd+itest: plug in graph SQL migration under test tag & add itest

0 of 16 new or added lines in 2 files covered. (0.0%)

74 existing lines in 19 files now uncovered.

135358 of 200979 relevant lines covered (67.35%)

21818.85 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/config_prod.go
1
//go:build !test_native_sql
2

3
package lnd
4

5
import (
6
        "context"
7

8
        "github.com/btcsuite/btcd/chaincfg/chainhash"
9
        graphdb "github.com/lightningnetwork/lnd/graph/db"
10
        "github.com/lightningnetwork/lnd/kvdb"
11
        "github.com/lightningnetwork/lnd/sqldb"
12
        "github.com/lightningnetwork/lnd/sqldb/sqlc"
13
)
14

15
// RunTestSQLMigration is a build tag that indicates whether the test_native_sql
16
// build tag is set.
17
var RunTestSQLMigration = false
18

19
// getGraphStore returns a graphdb.V1Store backed by a graphdb.KVStore
20
// implementation.
21
func (d *DefaultDatabaseBuilder) getGraphStore(_ *sqldb.BaseDB,
22
        kvBackend kvdb.Backend,
23
        opts ...graphdb.StoreOptionModifier) (graphdb.V1Store, error) {
×
24

×
25
        return graphdb.NewKVStore(kvBackend, opts...)
×
26
}
×
27

28
// getSQLMigration returns a migration function for the given version.
29
//
30
// NOTE: this is a no-op for the production build since all migrations that are
31
// in production will also be in development builds, and so they are not
32
// defined behind a build tag.
33
func getSQLMigration(ctx context.Context, version int,
34
        kvBackend kvdb.Backend,
NEW
35
        chain chainhash.Hash) (func(tx *sqlc.Queries) error, bool) {
×
NEW
36

×
NEW
37
        return nil, false
×
NEW
38
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc