Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
caddy
Commits
afbda595
Commit
afbda595
authored
Dec 11, 2015
by
Radim Marek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
import glob tests
parent
d56a9a1c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
0 deletions
+20
-0
caddy/parse/import_glob0.txt
caddy/parse/import_glob0.txt
+6
-0
caddy/parse/import_glob1.txt
caddy/parse/import_glob1.txt
+4
-0
caddy/parse/import_glob2.txt
caddy/parse/import_glob2.txt
+3
-0
caddy/parse/parsing_test.go
caddy/parse/parsing_test.go
+7
-0
No files found.
caddy/parse/import_glob0.txt
0 → 100644
View file @
afbda595
glob0.host0 {
dir2 arg1
}
glob0.host1 {
}
caddy/parse/import_glob1.txt
0 → 100644
View file @
afbda595
glob1.host0 {
dir1
dir2 arg1
}
caddy/parse/import_glob2.txt
0 → 100644
View file @
afbda595
glob2.host0 {
dir2 arg1
}
caddy/parse/parsing_test.go
View file @
afbda595
...
...
@@ -329,6 +329,13 @@ func TestParseAll(t *testing.T) {
[]
address
{{
"host1.com"
,
"http"
},
{
"host2.com"
,
"http"
}},
[]
address
{{
"host3.com"
,
"https"
},
{
"host4.com"
,
"https"
}},
}},
{
`import import_glob*.txt`
,
false
,
[][]
address
{
[]
address
{{
"glob0.host0"
,
""
}},
[]
address
{{
"glob0.host1"
,
""
}},
[]
address
{{
"glob1.host0"
,
""
}},
[]
address
{{
"glob2.host0"
,
""
}},
}},
}
{
p
:=
testParser
(
test
.
input
)
blocks
,
err
:=
p
.
parseAll
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment