Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Unified Diff: pkg/analysis_services/test/index/local_file_index_test.dart

Issue 377053002: Tests for LocalIndex and Dart index contributor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_services/test/index/local_file_index_test.dart
diff --git a/pkg/analysis_services/test/index/local_file_index_test.dart b/pkg/analysis_services/test/index/local_file_index_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..8ac5fefcfe6512942769b98f4ce95e0328518bf9
--- /dev/null
+++ b/pkg/analysis_services/test/index/local_file_index_test.dart
@@ -0,0 +1,26 @@
+// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+library test.services.src.index.local_file_index;
+
+import 'dart:io';
+
+import 'package:analysis_services/index/index.dart';
+import 'package:analysis_services/index/local_file_index.dart';
+import 'package:unittest/unittest.dart';
+
+
+main() {
+ groupSep = ' | ';
+ test('createLocalFileIndex', () {
+ Directory indexDirectory = Directory.systemTemp.createTempSync(
+ 'AnalysisServer_index');
+ try {
+ Index index = createLocalFileIndex(indexDirectory);
+ expect(index, isNotNull);
+ } finally {
+ indexDirectory.delete(recursive: true);
+ }
+ });
+}

Powered by Google App Engine
This is Rietveld 408576698