mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 23:15:26 +02:00
21 lines
371 B
Go
21 lines
371 B
Go
package analyzer
|
|
|
|
import (
|
|
testutils_test "config-lsp/handlers/ssh_config/test_utils"
|
|
"testing"
|
|
)
|
|
|
|
func TestMatchInvalidAllArgument(
|
|
t *testing.T,
|
|
) {
|
|
d := testutils_test.DocumentFromInput(t, `
|
|
Match user lena all
|
|
`)
|
|
|
|
errors := analyzeMatchBlocks(d)
|
|
|
|
if !(len(errors) == 1 && errors[0].Range.Start.Line == 0) {
|
|
t.Fatalf("Expected one error, got %v", errors)
|
|
}
|
|
}
|