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

lightningnetwork / lnd / 15951470896

29 Jun 2025 04:23AM UTC coverage: 67.594% (-0.01%) from 67.606%
15951470896

Pull #9751

github

web-flow
Merge 599d9b051 into 6290edf14
Pull Request #9751: multi: update Go to 1.23.10 and update some packages

135088 of 199851 relevant lines covered (67.59%)

21909.44 hits per line

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

85.71
/channeldb/migration/create_tlb.go
1
package migration
2

3
import (
4
        "fmt"
5

6
        "github.com/lightningnetwork/lnd/kvdb"
7
)
8

9
// CreateTLB creates a new top-level bucket with the passed bucket identifier.
10
func CreateTLB(bucket []byte) func(kvdb.RwTx) error {
341✔
11
        return func(tx kvdb.RwTx) error {
343✔
12
                log.Infof("Creating top-level bucket: \"%s\" ...", bucket)
2✔
13

2✔
14
                if tx.ReadBucket(bucket) != nil {
3✔
15
                        return fmt.Errorf("top-level bucket \"%s\" "+
1✔
16
                                "already exists", bucket)
1✔
17
                }
1✔
18

19
                _, err := tx.CreateTopLevelBucket(bucket)
1✔
20
                if err != nil {
1✔
21
                        return err
×
22
                }
×
23

24
                log.Infof("Created top-level bucket: \"%s\"", bucket)
1✔
25
                return nil
1✔
26
        }
27
}
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