| Child |
Name |
Tests |
Failures |
Skipped |
Duration |
Success rate |
| isAvailable returns false when no API key is configured |
isAvailable_returnsFalseWhenApiKeyIsMissing() |
1 |
0 |
0 |
0.746s |
100% |
| isAvailable returns true when an API key is configured |
isAvailable_returnsTrueWhenApiKeyIsConfigured() |
1 |
0 |
0 |
0.002s |
100% |
| suggestForClass parses wrapped JSON, normalizes invalid entries, and builds correct request |
suggestForClass_parsesWrappedJson_normalizesInvalidEntries_andBuildsExpectedRequest() |
1 |
0 |
0 |
0.010s |
100% |
| suggestForClass throws AiSuggestionException with 'No content returned by Anthropic' when content field is absent from the response |
suggestForClass_throwsWhenContentFieldIsAbsentFromResponse() |
1 |
0 |
0 |
0.008s |
100% |
| suggestForClass throws AiSuggestionException with 'No content returned by Anthropic' when content list is empty |
suggestForClass_throwsWhenContentListIsEmpty() |
1 |
0 |
0 |
0.112s |
100% |
| suggestForClass throws AiSuggestionException with 'Anthropic returned no text block' when only non-text blocks are present |
suggestForClass_throwsWhenNoTextBlockIsPresent() |
1 |
0 |
0 |
0.012s |
100% |
| suggestForClass throws AiSuggestionException when text block contains no JSON object |
suggestForClass_throwsWhenTextBlockContainsNoJsonObject() |
1 |
0 |
0 |
0.010s |
100% |