Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restored mermaid links #752

Merged
merged 3 commits into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,27 +50,27 @@ These tests produce a rich execution report, [for example](https://mastercard.gi
```mermaid
graph TB
subgraph com.mastercard.test.flow
api[api]
assert-core[assert-core]
assert-filter[assert-filter]
assert-junit4[assert-junit4]
assert-junit5[assert-junit5]
builder[builder]
coppice[coppice]
duct[duct]
message-core[message-core]
message-http[message-http]
message-json[message-json]
message-sql[message-sql]
message-text[message-text]
message-web[message-web]
message-xml[message-xml]
model[model]
report-core[report-core]
report-ng[report-ng]
validation-core[validation-core]
validation-junit4[validation-junit4]
validation-junit5[validation-junit5]
api[<a href='https://github.com/Mastercard/flow/tree/main/api'>api</a>]
assert-core[<a href='https://github.com/Mastercard/flow/tree/main/assert/assert-core'>assert-core</a>]
assert-filter[<a href='https://github.com/Mastercard/flow/tree/main/assert/assert-filter'>assert-filter</a>]
assert-junit4[<a href='https://github.com/Mastercard/flow/tree/main/assert/assert-junit4'>assert-junit4</a>]
assert-junit5[<a href='https://github.com/Mastercard/flow/tree/main/assert/assert-junit5'>assert-junit5</a>]
builder[<a href='https://github.com/Mastercard/flow/tree/main/builder'>builder</a>]
coppice[<a href='https://github.com/Mastercard/flow/tree/main/validation/coppice'>coppice</a>]
duct[<a href='https://github.com/Mastercard/flow/tree/main/report/duct'>duct</a>]
message-core[<a href='https://github.com/Mastercard/flow/tree/main/message/message-core'>message-core</a>]
message-http[<a href='https://github.com/Mastercard/flow/tree/main/message/message-http'>message-http</a>]
message-json[<a href='https://github.com/Mastercard/flow/tree/main/message/message-json'>message-json</a>]
message-sql[<a href='https://github.com/Mastercard/flow/tree/main/message/message-sql'>message-sql</a>]
message-text[<a href='https://github.com/Mastercard/flow/tree/main/message/message-text'>message-text</a>]
message-web[<a href='https://github.com/Mastercard/flow/tree/main/message/message-web'>message-web</a>]
message-xml[<a href='https://github.com/Mastercard/flow/tree/main/message/message-xml'>message-xml</a>]
model[<a href='https://github.com/Mastercard/flow/tree/main/model'>model</a>]
report-core[<a href='https://github.com/Mastercard/flow/tree/main/report/report-core'>report-core</a>]
report-ng[<a href='https://github.com/Mastercard/flow/tree/main/report/report-ng'>report-ng</a>]
validation-core[<a href='https://github.com/Mastercard/flow/tree/main/validation/validation-core'>validation-core</a>]
validation-junit4[<a href='https://github.com/Mastercard/flow/tree/main/validation/validation-junit4'>validation-junit4</a>]
validation-junit5[<a href='https://github.com/Mastercard/flow/tree/main/validation/validation-junit5'>validation-junit5</a>]
end
api --> message-core
api --> builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ private static String diagram( String orientation, Predicate<Link> inclusion,
}

/**
* Pending https://github.com/orgs/community/discussions/106690
* Tracking https://github.com/orgs/community/discussions/106690
*/
private static boolean RENDER_LINKS = false;
private static boolean RENDER_LINKS = true;

private static final String moduleLink( Path root, PomData pom ) {
if( RENDER_LINKS ) {
Expand Down
44 changes: 22 additions & 22 deletions example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,36 +69,36 @@ graph TD
```mermaid
graph LR
subgraph core
builder[builder]
model[model]
builder[<a href='https://github.com/Mastercard/flow/tree/main/builder'>builder</a>]
model[<a href='https://github.com/Mastercard/flow/tree/main/model'>model</a>]
end
subgraph message
message-http[message-http]
message-json[message-json]
message-sql[message-sql]
message-text[message-text]
message-web[message-web]
message-http[<a href='https://github.com/Mastercard/flow/tree/main/message/message-http'>message-http</a>]
message-json[<a href='https://github.com/Mastercard/flow/tree/main/message/message-json'>message-json</a>]
message-sql[<a href='https://github.com/Mastercard/flow/tree/main/message/message-sql'>message-sql</a>]
message-text[<a href='https://github.com/Mastercard/flow/tree/main/message/message-text'>message-text</a>]
message-web[<a href='https://github.com/Mastercard/flow/tree/main/message/message-web'>message-web</a>]
end
subgraph validation
validation-junit5[validation-junit5]
coppice[coppice]
validation-junit5[<a href='https://github.com/Mastercard/flow/tree/main/validation/validation-junit5'>validation-junit5</a>]
coppice[<a href='https://github.com/Mastercard/flow/tree/main/validation/coppice'>coppice</a>]
end
subgraph assert
assert-junit5[assert-junit5]
duct[duct]
assert-junit5[<a href='https://github.com/Mastercard/flow/tree/main/assert/assert-junit5'>assert-junit5</a>]
duct[<a href='https://github.com/Mastercard/flow/tree/main/report/duct'>duct</a>]
end
subgraph example
app-api[app-api]
app-assert[app-assert]
app-core[app-core]
app-framework[app-framework]
app-histogram[app-histogram]
app-itest[app-itest]
app-model[app-model]
app-queue[app-queue]
app-store[app-store]
app-ui[app-ui]
app-web-ui[app-web-ui]
app-api[<a href='https://github.com/Mastercard/flow/tree/main/example/app-api'>app-api</a>]
app-assert[<a href='https://github.com/Mastercard/flow/tree/main/example/app-assert'>app-assert</a>]
app-core[<a href='https://github.com/Mastercard/flow/tree/main/example/app-core'>app-core</a>]
app-framework[<a href='https://github.com/Mastercard/flow/tree/main/example/app-framework'>app-framework</a>]
app-histogram[<a href='https://github.com/Mastercard/flow/tree/main/example/app-histogram'>app-histogram</a>]
app-itest[<a href='https://github.com/Mastercard/flow/tree/main/example/app-itest'>app-itest</a>]
app-model[<a href='https://github.com/Mastercard/flow/tree/main/example/app-model'>app-model</a>]
app-queue[<a href='https://github.com/Mastercard/flow/tree/main/example/app-queue'>app-queue</a>]
app-store[<a href='https://github.com/Mastercard/flow/tree/main/example/app-store'>app-store</a>]
app-ui[<a href='https://github.com/Mastercard/flow/tree/main/example/app-ui'>app-ui</a>]
app-web-ui[<a href='https://github.com/Mastercard/flow/tree/main/example/app-web-ui'>app-web-ui</a>]
end
app-api --> app-web-ui
app-api --> app-ui
Expand Down
4 changes: 2 additions & 2 deletions report/report-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@
<configuration>
<!-- I'm not saying these *have* to stay where they are, just that
we shouldn't let them slip down by accident -->
<mutationThreshold>94</mutationThreshold>
<coverageThreshold>94</coverageThreshold>
<mutationThreshold>90</mutationThreshold>
<coverageThreshold>90</coverageThreshold>
<excludedTestClasses>
<!-- We'd like the report before the heat-death of the
universe, so avoid the selenium tests -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,13 @@ private static void fixLazyChunkLoadingPath( Path resDir ) {
*
* @param payload The data to insert into the index {@link Template}
* @param destination Where to write the populated index file to
* @return <code>this</code>
*/
public JsApp write( Object payload, Path destination ) {
public void write( Object payload, Path destination ) {
QuietFiles.createDirectories( destination.getParent() );
QuietFiles.write( destination, indexTemplate.insert(
payload,
destination.getParent().relativize( originalIndexPath.getParent() ) )
.getBytes( UTF_8 ) );
return this;
}

private static void copy( InputStream in, FileOutputStream out ) throws IOException {
Expand Down
Loading