1dc06e8298
Co-authored-by: Carlos Florencio <carlosmflorencio@gmail.com>
16 lines
308 B
Go
16 lines
308 B
Go
package mcpmode
|
|
|
|
import "testing"
|
|
|
|
func TestInstanceModes(t *testing.T) {
|
|
for _, mode := range InstanceModes() {
|
|
if !IsInstanceMode(mode) {
|
|
t.Errorf("IsInstanceMode(%q) = false, want true", mode)
|
|
}
|
|
}
|
|
|
|
if IsInstanceMode(External) {
|
|
t.Errorf("IsInstanceMode(%q) = true, want false", External)
|
|
}
|
|
}
|