MCPcopy
hub / github.com/stretchr/testify / TestData

Method TestData

mock/mock.go:329–335  ·  view source on GitHub ↗

TestData holds any data that might be useful for testing. Testify ignores this data completely allowing you to do whatever you like with it.

()

Source from the content-addressed store, hash-verified

327// TestData holds any data that might be useful for testing. Testify ignores
328// this data completely allowing you to do whatever you like with it.
329func (m *Mock) TestData() objx.Map {
330 if m.testData == nil {
331 m.testData = make(objx.Map)
332 }
333
334 return m.testData
335}
336
337/*
338 Setting expectations

Callers 1

Test_Mock_TestDataFunction · 0.80

Calls

no outgoing calls

Tested by 1

Test_Mock_TestDataFunction · 0.64