TestCase constructor
TestCase({
- String? name,
- Iterable<
String> ? tags, - String? displayName,
- String? notes,
- Iterable<
ConversationTurn> ? testCaseConversationTurns, - Timestamp? creationTime,
- TestCaseResult? lastTestResult,
- TestConfig? testConfig,
Implementation
factory TestCase({
$core.String? name,
$core.Iterable<$core.String>? tags,
$core.String? displayName,
$core.String? notes,
$core.Iterable<ConversationTurn>? testCaseConversationTurns,
$21.Timestamp? creationTime,
TestCaseResult? lastTestResult,
TestConfig? testConfig,
}) {
final _result = create();
if (name != null) {
_result.name = name;
}
if (tags != null) {
_result.tags.addAll(tags);
}
if (displayName != null) {
_result.displayName = displayName;
}
if (notes != null) {
_result.notes = notes;
}
if (testCaseConversationTurns != null) {
_result.testCaseConversationTurns.addAll(testCaseConversationTurns);
}
if (creationTime != null) {
_result.creationTime = creationTime;
}
if (lastTestResult != null) {
_result.lastTestResult = lastTestResult;
}
if (testConfig != null) {
_result.testConfig = testConfig;
}
return _result;
}