chore: split versions_test from cutler_test, mostly to trigger coverage (#615)
Co-authored-by: Bryan Oltman <bryanoltman@gmail.com>
This commit is contained in:
@@ -1,20 +1,7 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:cutler/config.dart';
|
||||
import 'package:cutler/versions.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
test('parseBuildrootVersion', () {
|
||||
final depsContents = File('test/fixtures/DEPS').readAsStringSync();
|
||||
final buildrootHash = parseBuildrootRevision(depsContents);
|
||||
expect(buildrootHash, 'd6c410f19de5947de40ce110c1e768c887870072');
|
||||
});
|
||||
test('parseDartVersion', () {
|
||||
final depsContents = File('test/fixtures/DEPS').readAsStringSync();
|
||||
final dartHash = parseDartRevision(depsContents);
|
||||
expect(dartHash, '7a6514d1377175decd3a886fe4190fbbebddac3a');
|
||||
});
|
||||
test('expandUser', () {
|
||||
final path = expandUser('~/foo/bar', env: {'HOME': '/home/user'});
|
||||
expect(path, endsWith('/home/user/foo/bar'));
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:cutler/versions.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
test('parseBuildrootVersion', () {
|
||||
final depsContents = File('test/fixtures/DEPS').readAsStringSync();
|
||||
final buildrootHash = parseBuildrootRevision(depsContents);
|
||||
expect(buildrootHash, 'd6c410f19de5947de40ce110c1e768c887870072');
|
||||
});
|
||||
test('parseDartVersion', () {
|
||||
final depsContents = File('test/fixtures/DEPS').readAsStringSync();
|
||||
final dartHash = parseDartRevision(depsContents);
|
||||
expect(dartHash, '7a6514d1377175decd3a886fe4190fbbebddac3a');
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user