datasetToolCallDiffPreviewBlocksForTesting function

  1. @visibleForTesting
List<Map<String, Object?>> datasetToolCallDiffPreviewBlocksForTesting({
  1. required String toolkit,
  2. required String tool,
  3. required Map<String, Object?>? arguments,
})

Implementation

@visibleForTesting
List<Map<String, Object?>> datasetToolCallDiffPreviewBlocksForTesting({
  required String toolkit,
  required String tool,
  required Map<String, Object?>? arguments,
}) {
  return [
    for (final block in _toolCallDiffPreviewBlocks(toolkit: toolkit, tool: tool, arguments: arguments))
      {'header': block.header, 'code': block.code, 'linesAdded': block.linesAdded, 'linesRemoved': block.linesRemoved},
  ];
}