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

lightningnetwork / lnd / 13481548301

23 Feb 2025 09:06AM UTC coverage: 4.031% (-54.8%) from 58.825%
13481548301

Pull #9521

github

web-flow
Merge 1ffbe99fe into 5fe900d18
Pull Request #9521: unit: remove GOACC, use Go 1.20 native coverage functionality

2852 of 70750 relevant lines covered (4.03%)

0.92 hits per line

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

0.0
/sqldb/sqlc/invoice_events.sql.go
1
// Code generated by sqlc. DO NOT EDIT.
2
// versions:
3
//   sqlc v1.25.0
4
// source: invoice_events.sql
5

6
package sqlc
7

8
import (
9
        "context"
10
        "time"
11
)
12

13
const onAMPSubInvoiceCanceled = `-- name: OnAMPSubInvoiceCanceled :exec
14
INSERT INTO invoice_events (
15
    added_at, event_type, invoice_id, set_id
16
) VALUES (
17
    $1, 4, $2, $3
18
)
19
`
20

21
type OnAMPSubInvoiceCanceledParams struct {
22
        AddedAt   time.Time
23
        InvoiceID int64
24
        SetID     []byte
25
}
26

27
func (q *Queries) OnAMPSubInvoiceCanceled(ctx context.Context, arg OnAMPSubInvoiceCanceledParams) error {
×
28
        _, err := q.db.ExecContext(ctx, onAMPSubInvoiceCanceled, arg.AddedAt, arg.InvoiceID, arg.SetID)
×
29
        return err
×
30
}
×
31

32
const onAMPSubInvoiceCreated = `-- name: OnAMPSubInvoiceCreated :exec
33
INSERT INTO invoice_events (
34
    added_at, event_type, invoice_id, set_id
35
) VALUES (
36
    $1, 3, $2, $3
37
)
38
`
39

40
type OnAMPSubInvoiceCreatedParams struct {
41
        AddedAt   time.Time
42
        InvoiceID int64
43
        SetID     []byte
44
}
45

46
func (q *Queries) OnAMPSubInvoiceCreated(ctx context.Context, arg OnAMPSubInvoiceCreatedParams) error {
×
47
        _, err := q.db.ExecContext(ctx, onAMPSubInvoiceCreated, arg.AddedAt, arg.InvoiceID, arg.SetID)
×
48
        return err
×
49
}
×
50

51
const onAMPSubInvoiceSettled = `-- name: OnAMPSubInvoiceSettled :exec
52
INSERT INTO invoice_events (
53
    added_at, event_type, invoice_id, set_id
54
) VALUES (
55
    $1, 5, $2, $3
56
)
57
`
58

59
type OnAMPSubInvoiceSettledParams struct {
60
        AddedAt   time.Time
61
        InvoiceID int64
62
        SetID     []byte
63
}
64

65
func (q *Queries) OnAMPSubInvoiceSettled(ctx context.Context, arg OnAMPSubInvoiceSettledParams) error {
×
66
        _, err := q.db.ExecContext(ctx, onAMPSubInvoiceSettled, arg.AddedAt, arg.InvoiceID, arg.SetID)
×
67
        return err
×
68
}
×
69

70
const onInvoiceCanceled = `-- name: OnInvoiceCanceled :exec
71
INSERT INTO invoice_events (
72
    added_at, event_type, invoice_id
73
) VALUES (
74
    $1, 1, $2
75
)
76
`
77

78
type OnInvoiceCanceledParams struct {
79
        AddedAt   time.Time
80
        InvoiceID int64
81
}
82

83
func (q *Queries) OnInvoiceCanceled(ctx context.Context, arg OnInvoiceCanceledParams) error {
×
84
        _, err := q.db.ExecContext(ctx, onInvoiceCanceled, arg.AddedAt, arg.InvoiceID)
×
85
        return err
×
86
}
×
87

88
const onInvoiceCreated = `-- name: OnInvoiceCreated :exec
89
INSERT INTO invoice_events (
90
    added_at, event_type, invoice_id
91
) VALUES (
92
    $1, 0, $2
93
)
94
`
95

96
type OnInvoiceCreatedParams struct {
97
        AddedAt   time.Time
98
        InvoiceID int64
99
}
100

101
func (q *Queries) OnInvoiceCreated(ctx context.Context, arg OnInvoiceCreatedParams) error {
×
102
        _, err := q.db.ExecContext(ctx, onInvoiceCreated, arg.AddedAt, arg.InvoiceID)
×
103
        return err
×
104
}
×
105

106
const onInvoiceSettled = `-- name: OnInvoiceSettled :exec
107
INSERT INTO invoice_events (
108
    added_at, event_type, invoice_id
109
) VALUES (
110
    $1, 2, $2
111
)
112
`
113

114
type OnInvoiceSettledParams struct {
115
        AddedAt   time.Time
116
        InvoiceID int64
117
}
118

119
func (q *Queries) OnInvoiceSettled(ctx context.Context, arg OnInvoiceSettledParams) error {
×
120
        _, err := q.db.ExecContext(ctx, onInvoiceSettled, arg.AddedAt, arg.InvoiceID)
×
121
        return err
×
122
}
×
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

© 2026 Coveralls, Inc