MCPcopy Create free account
hub / github.com/driangle/taskmd / TestValidateConfig_NoScopes

Function TestValidateConfig_NoScopes

sdk/go/validator/validator_test.go:883–896  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

881}
882
883func TestValidateConfig_NoScopes(t *testing.T) {
884 v := NewValidator(false)
885 config := &ConfigData{
886 Scopes: nil,
887 TopKeys: []string{"dir", "web"},
888 ConfigPath: ".taskmd.yaml",
889 }
890
891 result := v.ValidateConfig(config)
892
893 if result.Errors != 0 || result.Warnings != 0 {
894 t.Errorf("Expected no issues when no scopes section, got %d errors, %d warnings", result.Errors, result.Warnings)
895 }
896}
897
898func TestValidateTouches_ValidReferences(t *testing.T) {
899 v := NewValidator(false)

Callers

nothing calls this directly

Calls 2

ValidateConfigMethod · 0.95
NewValidatorFunction · 0.85

Tested by

no test coverage detected