-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See [CHANGELOG](https://github.com/aws/jsii/blob/bump/1.52.0/CHANGELOG.md)
- Loading branch information
Showing
10 changed files
with
229 additions
and
30 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
mkdocs~=1.2.3 | ||
mkdocs-awesome-pages-plugin~=2.6.0 | ||
mkdocs-material~=8.1.3 | ||
mkdocs-material~=8.1.4 | ||
mkdocs-git-revision-date-plugin~=0.3.1 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,5 @@ | |
"rejectCycles": true | ||
} | ||
}, | ||
"version": "1.51.0" | ||
"version": "1.52.0" | ||
} |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { loadAssemblies, allTypeScriptSnippets, loadAllDefaultTablets } from '../jsii/assemblies'; | ||
import * as logging from '../logging'; | ||
import { RosettaTranslator } from '../rosetta-translator'; | ||
import { formatLocation } from '../snippet'; | ||
|
||
export async function checkCoverage(assemblyLocations: readonly string[]): Promise<void> { | ||
logging.info(`Loading ${assemblyLocations.length} assemblies`); | ||
const assemblies = await loadAssemblies(assemblyLocations, false); | ||
|
||
const snippets = Array.from(allTypeScriptSnippets(assemblies, true)); | ||
|
||
const translator = new RosettaTranslator({ | ||
assemblies: assemblies.map((a) => a.assembly), | ||
allowDirtyTranslations: true, | ||
}); | ||
translator.addTabletsToCache(...Object.values(await loadAllDefaultTablets(assemblies))); | ||
|
||
process.stdout.write(`- ${snippets.length} total snippets.\n`); | ||
process.stdout.write(`- ${translator.cache.count} translations in cache.\n`); | ||
process.stdout.write('\n'); | ||
|
||
const results = translator.readFromCache(snippets, true, true); | ||
process.stdout.write(`- ${results.translations.length - results.dirtyCount} successful cache hits.\n`); | ||
process.stdout.write(` ${results.infusedCount} infused.\n`); | ||
process.stdout.write(`- ${results.dirtyCount} translations in cache but dirty (ok for pacmak, transliterate)\n`); | ||
process.stdout.write(` ${results.dirtySourceCount} sources have changed.\n`); | ||
process.stdout.write(` ${results.dirtyTranslatorCount} translator has changed.\n`); | ||
process.stdout.write(` ${results.dirtyTypesCount} types have changed.\n`); | ||
process.stdout.write(` ${results.dirtyDidntCompile} did not successfully compile.\n`); | ||
process.stdout.write(`- ${results.remaining.length} snippets untranslated.\n`); | ||
|
||
for (const remaining of results.remaining) { | ||
process.stdout.write(` ${formatLocation(remaining.location)}\n`); | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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