MCPcopy
hub / github.com/alibaba/MongoShake / runNonTxnMetaCase

Function runNonTxnMetaCase

oplog/txn_test.go:116–125  ·  view source on GitHub ↗
(t *testing.T, c *TestData)

Source from the content-addressed store, hash-verified

114 }
115}
116func runNonTxnMetaCase(t *testing.T, c *TestData) {
117 meta, err := NewTxnMeta(c.ops[0])
118 if err != nil {
119 t.Fatalf("case %s: failed to parse op: %v", c.name, err)
120 }
121 if meta.IsTxn() {
122 t.Errorf("case %s: non-txn meta looks like transaction", c.name)
123 }
124 return
125}
126func runTxnMetaCase(t *testing.T, c *TestData) {
127 ops := c.ops
128 // Double check that we get all the ops we expected.

Callers 1

TestTxnMetaFunction · 0.85

Calls 4

IsTxnMethod · 0.95
NewTxnMetaFunction · 0.85
FatalfMethod · 0.80
ErrorfMethod · 0.80

Tested by

no test coverage detected