updateDocs 16/16(100%) line coverage

      
10
20
30
40
50
60
70
80
90
100
110
120
131
140
1563
1620
1719
180
190
201
210
221
230
240
251
260
270
280
290
3060
3119
3219
330
3419
350
3619
3719
381564
390
400
4119
420
4319
440
450
module updateDocs; import fluentasserts.core.operations.registry; import std.stdio; import std.file; import std.path; import std.array; import std.algorithm; import std.string; /// updating the built in operations in readme.md file unittest { auto content = readText("README.md").split("#"); foreach(ref section; content) { if(!section.startsWith(" Built in operations\n")) { continue; } section = " Built in operations\n\n"; section ~= Registry.instance.docs ~ "\n\n"; } std.file.write("README.md", content.join("#")); } /// updating the operations md files unittest { foreach(operation; Registry.instance.registeredOperations) { string content = "# The `" ~ operation ~ "` operation\n\n"; content ~= "[up](../README.md)\n\n"; content ~= Registry.instance.describe(operation) ~ "\n\n"; content ~= "Works with:\n" ; content ~= Registry.instance.bindingsForName(operation) .map!(a => " - expect(`" ~ a.valueType ~ "`).[to].[be]." ~ operation ~ "(`" ~ a.expectedValueType ~ "`)") .join("\n"); content ~= "\n"; std.file.write(buildPath("api", operation ~ ".md"), content); } }