aboutsummaryrefslogtreecommitdiff
path: root/lib/ini/testdata
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2018-05-10 20:49:02 +0700
committerShulhan <ms@kilabit.info>2018-05-10 20:49:02 +0700
commit488e6c32348fb84636dd69d46c151fffcfe7ee37 (patch)
tree928837e7a53baf3f85a4f5060cafacedc6b9062e /lib/ini/testdata
parente6ef580dc8134019cffa94810907b81cb5caa19a (diff)
downloadpakakeh.go-488e6c32348fb84636dd69d46c151fffcfe7ee37.tar.xz
Refactor parser using bytes.Reader
Previous benchmark result (22dcd07 Move buffer to reader), BenchmarkParse-2 500 19534400 ns/op 4656335 B/op 81163 allocs/op New benchmark result, BenchmarkParse-2 20000 71120 ns/op 35368 B/op 549 allocs/op
Diffstat (limited to 'lib/ini/testdata')
-rw-r--r--lib/ini/testdata/input.ini14
-rw-r--r--lib/ini/testdata/var_without_section.ini2
2 files changed, 11 insertions, 5 deletions
diff --git a/lib/ini/testdata/input.ini b/lib/ini/testdata/input.ini
index 88028f93..68524030 100644
--- a/lib/ini/testdata/input.ini
+++ b/lib/ini/testdata/input.ini
@@ -64,7 +64,7 @@
pager = less -R
editor = nvim
autocrlf = false
- filemode = false
+ filemode = true
[gui]
fontui = -family \"xos4 Terminus\" -size 10 -weight normal -slant roman -underline 0 -overstrike 0
fontdiff = -family \"xos4 Terminus\" -size 10 -weight normal -slant roman -underline 0 -overstrike 0
@@ -82,7 +82,7 @@
pending = codereview pending
submit = codereview submit
sync = codereview sync
- tree = --no-pager log --graph \
+ tree = !git --no-pager log --graph \
--date=format:'%Y-%m-%d' \
--pretty=format:'%C(auto,dim)%ad %<(7,trunc) %an %Creset%m %h %s %Cgreen%d%Creset' \
--exclude="*/production" \
@@ -106,5 +106,13 @@
name = Shulhan
email = ms@kilabit.info
-[url "git@github.com:"]
+[url "git@github.com:"] # Replace HTTP URL with git+ssh
insteadOf = https://github.com/
+
+[last]
+ valid0
+ valid1 =
+ valid2 = # comment
+ valid3 = \
+ ; comment
+ valid4 =
diff --git a/lib/ini/testdata/var_without_section.ini b/lib/ini/testdata/var_without_section.ini
index 51bb1d02..465bee31 100644
--- a/lib/ini/testdata/var_without_section.ini
+++ b/lib/ini/testdata/var_without_section.ini
@@ -10,5 +10,3 @@ key = value
[core]
; Don't trust file modes
filemode = false
-
-