MCPcopy
hub / github.com/nats-io/nats.go / TestInbox

Function TestInbox

test/basic_test.go:909–914  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

907}
908
909func TestInbox(t *testing.T) {
910 inbox := nats.NewInbox()
911 if matched, _ := regexp.Match(`_INBOX.\S`, []byte(inbox)); !matched {
912 t.Fatal("Bad INBOX format")
913 }
914}
915
916func TestStats(t *testing.T) {
917 s := RunDefaultServer()

Callers

nothing calls this directly

Calls 1

NewInboxMethod · 0.80

Tested by

no test coverage detected