MCPcopy
hub / github.com/matcornic/hermes / Example

Interface Example

hermes_test.go:20–28  ·  view source on GitHub ↗

Every theme should display the same information // Find below the tests to check that // Implement this interface when creating a new example checking a common feature of all themes

Source from the content-addressed store, hash-verified

18
19// Implement this interface when creating a new example checking a common feature of all themes
20type Example interface {
21 // Create the hermes example with data
22 // Represents the "Given" step in Given/When/Then Workflow
23 getExample() (h Hermes, email Email)
24 // Checks the content of the generated HTML email by asserting content presence or not
25 assertHTMLContent(t *testing.T, s string)
26 // Checks the content of the generated Plaintext email by asserting content presence or not
27 assertPlainTextContent(t *testing.T, s string)
28}
29
30// Scenario
31type SimpleExample struct {

Callers 3

checkExampleFunction · 0.65
checkExampleFunction · 0.65
checkExampleFunction · 0.65

Implementers 6

SimpleExamplehermes_test.go
WithInviteCodehermes_test.go

Calls

no outgoing calls

Tested by

no test coverage detected