MCPcopy Index your code
hub / github.com/devaccuracy/ledgerforge / TestQueueInflightCommitSkipsWhenDateIsZero

Function TestQueueInflightCommitSkipsWhenDateIsZero

queue_test.go:103–116  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

101}
102
103func TestQueueInflightCommitSkipsWhenDateIsZero(t *testing.T) {
104 conf := &config.Configuration{
105 Queue: config.QueueConfig{
106 InflightCommitQueue: "inflight_commit_queue",
107 },
108 }
109 q := &Queue{config: conf}
110
111 transaction := getTransactionMock(100, false)
112 transaction.InflightCommitDate = time.Time{}
113
114 err := q.QueueInflightCommit(context.Background(), &transaction)
115 assert.NoError(t, err)
116}
117
118func TestQueueInflightCommitEnqueuesTask(t *testing.T) {
119 conf := &config.Configuration{

Callers

nothing calls this directly

Calls 2

QueueInflightCommitMethod · 0.95
getTransactionMockFunction · 0.85

Tested by

no test coverage detected