mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 15:14:52 +09:00
Test every ASCII character in prometheus test
The a and A felt lonely being the only letters included. Add the other letters in the ASCII character set as there was no good reason to leave them out.
This commit is contained in:
1 parent
86a648e759
commit
60eb2389a3
1 file changed
+3
-4
@@ -653,12 +653,11 @@ describe("lib/prometheus", function() {
|
||||
);
|
||||
|
||||
let labelValue = "";
|
||||
// Include every ASCII codepoint
|
||||
for (let i = 0; i < 128; i++) {
|
||||
const char = String.fromCodePoint(i);
|
||||
if (!/[1-9B-Zb-z]/.test(char)) { // exclude boring characters
|
||||
labelValue += char;
|
||||
}
|
||||
labelValue += String.fromCodePoint(i);
|
||||
}
|
||||
// Include Unicode codepoints from the basic and supplementary planes.
|
||||
labelValue += "©💣";
|
||||
|
||||
gauge.labels(labelValue, "2");
|
||||
|
||||
Reference in new issue
Block a user