agent/pkg/brain/brain_example_test.go

20 lines
350 B
Go
Raw Normal View History

// SPDX-License-Identifier: EUPL-1.2
package brain
import (
core "dappco.re/go/core"
)
func ExampleNew() {
sub := New(nil)
core.Println(sub.Name())
// Output: brain
}
func ExampleRegister_services() {
c := core.New(core.WithService(Register))
core.Println(c.Services())
// Output is non-deterministic (slice order), so no Output comment
}