calculateTestFileDigestFor static method

String calculateTestFileDigestFor(
  1. List<String> dependencies
)

Calculates the test file digest for the provided dependencies list.

Implementation

static String calculateTestFileDigestFor(List<String> dependencies) {
  if (dependencies.isEmpty) {
    throw Exception(
      'Dependencies list cannot be empty when invoked to generate digest',
    );
  }

  final sb = StringBuffer();

  for (final file in dependencies) {
    sb.write(calculateDigestFor(file));
    sb.write('-');
  }

  return calculateDigestForString(sb.toString());
}