Skip to main content
Glama
emicklei

melrōse musical expression player

by emicklei
interface_test.go1.04 kB
package op import ( "testing" "github.com/emicklei/melrose/core" ) func TestImplements(t *testing.T) { for _, each := range []struct { source any notSequenceable bool notStorable bool notReplaceable bool }{ {source: Fraction{}}, {source: Join{}}, {source: JoinMap{}}, {source: NoteMap{}}, {source: Dynamic{}}, {source: DynamicMap{}}, {source: TransposeMap{}}, {source: OctaveMap{}}, {source: Merge{}}, {source: Stretch{}}, } { if !each.notSequenceable { if _, ok := each.source.(core.Sequenceable); !ok { t.Errorf("%T does not implement Sequenceable", each.source) } } if !each.notStorable { if _, ok := each.source.(core.Storable); !ok { t.Errorf("%T does not implement Storable", each.source) } } if !each.notReplaceable { if _, ok := each.source.(core.Replaceable); !ok { t.Errorf("%T does not implement Replaceable", each.source) } } } } func storex(s any) string { if st, ok := s.(core.Storable); ok { return st.Storex() } return "" }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/emicklei/melrose'

If you have feedback or need assistance with the MCP directory API, please join our Discord server