()
| 21 | ) |
| 22 | |
| 23 | func ExampleC_AddModuleFunc() { |
| 24 | type Foo struct{} |
| 25 | c := core.New() |
| 26 | c.AddModuleFunc(func() (Foo, func(), error) { |
| 27 | return Foo{}, func() {}, nil |
| 28 | }) |
| 29 | fmt.Printf("%T %T\n", c.Modules()...) |
| 30 | // Output: |
| 31 | // core.cleanup core_test.Foo |
| 32 | } |
| 33 | |
| 34 | func ExampleC_AddModule_simple() { |
| 35 | type Foo struct{} |
nothing calls this directly
no test coverage detected