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

lightningnetwork / lnd / 13536249039

26 Feb 2025 03:42AM UTC coverage: 57.462% (-1.4%) from 58.835%
13536249039

Pull #8453

github

Roasbeef
peer: update chooseDeliveryScript to gen script if needed

In this commit, we update `chooseDeliveryScript` to generate a new
script if needed. This allows us to fold in a few other lines that
always followed this function into this expanded function.

The tests have been updated accordingly.
Pull Request #8453: [4/4] - multi: integrate new rbf coop close FSM into the existing peer flow

275 of 1318 new or added lines in 22 files covered. (20.86%)

19521 existing lines in 257 files now uncovered.

103858 of 180741 relevant lines covered (57.46%)

24750.23 hits per line

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

21.43
/build/deployment.go
1
package build
2

3
// DeploymentType is an enum specifying the deployment to compile.
4
type DeploymentType byte
5

6
const (
7
        // Development is a deployment that includes extra testing hooks and
8
        // logging configurations.
9
        Development DeploymentType = iota
10

11
        // Production is a deployment that strips out testing logic and uses
12
        // Default logging.
13
        Production
14
)
15

16
// String returns a human readable name for a build type.
UNCOV
17
func (b DeploymentType) String() string {
×
UNCOV
18
        switch b {
×
UNCOV
19
        case Development:
×
UNCOV
20
                return "development"
×
21
        case Production:
×
22
                return "production"
×
23
        default:
×
24
                return "unknown"
×
25
        }
26
}
27

28
// IsProdBuild returns true if this is a production build.
29
func IsProdBuild() bool {
×
30
        return Deployment == Production
×
31
}
×
32

33
// IsDevBuild returns true if this is a development build.
34
func IsDevBuild() bool {
3✔
35
        return Deployment == Development
3✔
36
}
3✔
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