Skip to content

Commit 4fc0618

Browse files
committed
fix snippets
1 parent ff4a629 commit 4fc0618

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

generators/src/main/java/com/algolia/codegen/cts/tests/SnippetsGenerator.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ public void addSupportingFiles(List<SupportingFile> supportingFiles, String outp
4646

4747
private Map<String, Snippet[]> loadSnippets(Map<String, CodegenOperation> operations) throws Exception {
4848
Map<String, Snippet[]> snippets = loadFullCTS(Snippet[].class);
49+
for (Map.Entry<String, Snippet[]> blockEntry : snippets.entrySet()) {
50+
for (Snippet test : blockEntry.getValue()) {
51+
test.method = blockEntry.getKey();
52+
}
53+
}
4954

5055
String clientName = client;
5156
if (client.equals("algoliasearch")) {

0 commit comments

Comments
 (0)