LLM Input Annotations (Beta)
Diffblue Cover can make use of Large Language Models (LLMs) as a beta feature in order to provide more context-aware inputs to tests. This page describes how to guide the LLM usage.
Using @InTestsUseLLM
@InTestsUseLLM/**
* Validates a credit card number using the Luhn algorithm.
* <p>
* This method sanitizes the input by removing spaces and hyphens,
* then checks if the number passes the Luhn checksum.
* It does not check card type or length.
*
* @param cardNumber the credit card number as a String; spaces and hyphens are allowed
* @return true if the card number is valid according to the Luhn algorithm, false otherwise
*/
@InTestsUseLLM
public static boolean isValidCreditCardNumber(String cardNumber) {
// ...
}Last updated
Was this helpful?

