Repository navigation
refactor: work out mermaid cache names and the cache cap from their inputs - #182
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No change to what users see. The cache names are unchanged, and the existing pins still pass.
name(source, theme)is now a wrapper overname_for(source, theme, renderer). The cache-name pins callname_forwith the renderer given, so they no longer depend on the renderer start-up global. A new check: a diagram drawn by mmdc gets a different name.cache_cap()is now a wrapper overcache_cap_from(Option<String>). Tests cover:"",abc,-5,1.5," 10",10MB): these give the default, as todayenvironment()measures with them.cargo-mutants on
name,name_for,Renderer::name,cache_cap,cache_cap_from,environmentandmerman(-j 2 --timeout 60): 12 mutants, 0 missed. On main, the same functions without the two new ones: 8 mutants, 0 missed.