@@ -8,7 +8,6 @@ import 'package:ffigen/src/code_generator.dart';
8
8
import 'package:ffigen/src/config_provider/config.dart' ;
9
9
import 'package:ffigen/src/config_provider/utils.dart' ;
10
10
import 'package:ffigen/src/config_provider/yaml_config.dart' ;
11
- import 'package:ffigen/src/strings.dart' as strings;
12
11
import 'package:logging/logging.dart' ;
13
12
import 'package:package_config/package_config_types.dart' ;
14
13
import 'package:path/path.dart' as path;
@@ -90,6 +89,9 @@ String absPath(String p) => path.join(packagePathForTests, p);
90
89
String configPath (String directory, String file) =>
91
90
absPath (configPathForTest (directory, file));
92
91
92
+ /// Returns the temp directory used to store bindings generated by tests.
93
+ String tmpDir = path.join (packagePathForTests, 'test' , '.temp' );
94
+
93
95
/// Generates actual file using library and tests using [expect] with expected.
94
96
///
95
97
/// This will not delete the actual debug file incase [expect] throws an error.
@@ -102,9 +104,7 @@ void _matchFileWithExpected({
102
104
String Function (String )? codeNormalizer,
103
105
}) {
104
106
final expectedPath = path.joinAll ([packagePathForTests, ...pathToExpected]);
105
- final file = File (
106
- path.join (strings.tmpDir, pathForActual),
107
- );
107
+ final file = File (path.join (tmpDir, pathForActual));
108
108
fileWriter (library: library, file: file);
109
109
try {
110
110
final actual =
0 commit comments