MCPcopy Create free account
hub / github.com/ebosas/microservices / testArguments

Function testArguments

cmd/cache/cache_test.go:59–68  ·  view source on GitHub ↗

testArguments produces arguments for the function being tested

(t *testing.T, message, source string, time int64)

Source from the content-addressed store, hash-verified

57
58// testArguments produces arguments for the function being tested
59func testArguments(t *testing.T, message, source string, time int64) *amqp.Delivery {
60 inputMsg := models.Message{Text: message, Source: source, Time: time}
61 messageJson, err := json.Marshal(inputMsg)
62 if err != nil {
63 t.Fatalf("marshal message: %s", err)
64 }
65 d := &amqp.Delivery{Body: messageJson}
66
67 return d
68}

Callers 1

TestUpdateRedisFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected