Lines Matching refs:errors
60 err: []error{errors.New("Path is outside directory: ..")},
65 err: []error{errors.New("Path is outside directory: ../a")},
70 err: []error{errors.New("Path is outside directory: ../a")},
75 err: []error{errors.New("Path is outside directory: /a")},
80 err: []error{errors.New("Path is outside directory: ../b")},
85 err: []error{errors.New("Path is outside directory: ../c")},
90 err: []error{errors.New("Path is outside directory: ..")},
105 err: []error{errors.New("Path contains invalid character($): $host/../$a")},
110 err: []error{errors.New("Path contains invalid character($): $host/..")},
122 check(t, "validateSafePath", p(testCase.in), out, ctx.errors, testCase.out, testCase.err)
135 check(t, "validatePath", p(testCase.in), out, ctx.errors, testCase.out, testCase.err)
637 if len(ctx.errors) > 0 {
639 testCase.base, testCase.target, ctx.errors)
690 if len(ctx.errors) > 0 {
691 t.Fatalf("unexpected errors %v", ctx.errors)