Merge pull request #407 from Stunkymonkey/format_placeholder-tests

format_placeholder percent tests
This commit is contained in:
Ingo Bürk 2020-04-08 08:41:57 +02:00 committed by GitHub
commit b13fd68e08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
23 changed files with 113 additions and 0 deletions

View File

@ -19,6 +19,7 @@ addons:
- libcap2-bin
- clang-format-3.8
- libllvm3.5
- pulseaudio
script:
- clang-format-3.8 -i $(find . -name "*.[ch]" | tr '\n' ' ') && git diff --exit-code || (echo 'Code was not formatted using clang-format!'; false)
# TODO: re-enable sanitizers once issues are fixed

View File

@ -0,0 +1 @@
I can %haz literal% % ?

View File

@ -0,0 +1,9 @@
general {
output_format = "none"
}
order += "cpu_usage"
cpu_usage {
format = "I can %haz literal% % ?"
}

View File

@ -0,0 +1 @@
I can %haz literal% % ?

View File

@ -0,0 +1,9 @@
general {
output_format = "none"
}
order += "disk /"
disk / {
format = "I can %haz literal% % ?"
}

View File

@ -0,0 +1 @@
I can %haz literal% % ?

View File

@ -0,0 +1,9 @@
general {
output_format = "none"
}
order += "ethernet NONEXISTINGETHERNETDEVICE"
ethernet NONEXISTINGETHERNETDEVICE {
format_down = "I can %haz literal% % ?"
}

View File

@ -0,0 +1 @@
I can %haz literal% % ?

View File

@ -0,0 +1,10 @@
general {
output_format = "none"
}
order += "ipv6"
ipv6 {
format_up = "I can %haz literal% % ?"
format_down = "I can %haz literal% % ?"
}

View File

@ -0,0 +1 @@
I can %haz literal% % ?

View File

@ -0,0 +1,9 @@
general {
output_format = "none"
}
order += "load"
load {
format = "I can %haz literal% % ?"
}

View File

@ -0,0 +1 @@
I can %haz literal% % ?

View File

@ -0,0 +1,9 @@
general {
output_format = "none"
}
order += "memory"
memory {
format = "I can %haz literal% % ?"
}

View File

@ -0,0 +1 @@
I can %haz literal% % ?

View File

@ -0,0 +1,9 @@
general {
output_format = "none"
}
order += "path_exists all"
path_exists all {
format = "I can %haz literal% % ?"
}

View File

@ -0,0 +1 @@
I can %haz literal% % ?

View File

@ -0,0 +1,9 @@
general {
output_format = "none"
}
order += "time"
time {
format = "I can %%haz literal% % ?"
}

View File

@ -0,0 +1 @@
I can %haz literal% % ?

View File

@ -0,0 +1,9 @@
general {
output_format = "none"
}
order += "tztime berlin"
tztime berlin {
format_time = "I can %haz literal% % ?"
}

View File

@ -0,0 +1 @@
I can %haz literal% % ?

View File

@ -0,0 +1,9 @@
general {
output_format = "none"
}
order += "volume master"
volume master {
format = "I can %haz literal% % ?"
}

View File

@ -0,0 +1 @@
I can %haz literal% % ?

View File

@ -0,0 +1,10 @@
general {
output_format = "none"
}
order += "wireless _first_"
wireless _first_ {
format_up = "I can %haz literal% % ?"
format_down = "I can %haz literal% % ?"
}