diff --git a/thermion_dart/test/animation_tests.dart b/thermion_dart/test/animation_tests.dart index 24d13354..0599a78c 100644 --- a/thermion_dart/test/animation_tests.dart +++ b/thermion_dart/test/animation_tests.dart @@ -1,10 +1,6 @@ import 'dart:async'; -import 'dart:io'; -import 'dart:math'; import 'dart:typed_data'; import 'package:animation_tools_dart/animation_tools_dart.dart'; -import 'package:thermion_dart/src/viewer/src/events.dart'; -import 'package:thermion_dart/thermion_dart.dart'; import 'package:test/test.dart'; import 'package:vector_math/vector_math_64.dart'; import 'helpers.dart'; diff --git a/thermion_dart/test/camera_tests.dart b/thermion_dart/test/camera_tests.dart index 7a2db0dd..72a7a69a 100644 --- a/thermion_dart/test/camera_tests.dart +++ b/thermion_dart/test/camera_tests.dart @@ -1,3 +1,5 @@ +// ignore_for_file: unused_local_variable + import 'package:thermion_dart/thermion_dart.dart'; import 'package:test/test.dart'; import 'package:vector_math/vector_math_64.dart'; @@ -62,6 +64,7 @@ void main() async { test('getCameraCullingProjectionMatrix', () async { throw Exception("TODO"); + // ignore: dead_code var viewer = await testHelper.createViewer(); var matrix = await viewer.getCameraCullingProjectionMatrix(); print(matrix); diff --git a/thermion_dart/test/geometry_tests.dart b/thermion_dart/test/geometry_tests.dart index cc922116..baa4c172 100644 --- a/thermion_dart/test/geometry_tests.dart +++ b/thermion_dart/test/geometry_tests.dart @@ -1,3 +1,5 @@ +// ignore_for_file: unused_local_variable + import 'dart:io'; import 'dart:math'; import 'package:thermion_dart/src/viewer/src/ffi/src/thermion_viewer_ffi.dart'; diff --git a/thermion_dart/test/gizmo_tests.dart b/thermion_dart/test/gizmo_tests.dart index ad3ba1a3..ccf4e2d6 100644 --- a/thermion_dart/test/gizmo_tests.dart +++ b/thermion_dart/test/gizmo_tests.dart @@ -1,3 +1,5 @@ +// ignore_for_file: unused_local_variable + import 'package:test/test.dart'; import 'helpers.dart'; diff --git a/thermion_dart/test/gltf_tests.dart b/thermion_dart/test/gltf_tests.dart index bb9c6718..ee591457 100644 --- a/thermion_dart/test/gltf_tests.dart +++ b/thermion_dart/test/gltf_tests.dart @@ -1,3 +1,5 @@ +// ignore_for_file: unused_local_variable + import 'dart:io'; import 'package:thermion_dart/thermion_dart.dart'; import 'package:test/test.dart'; diff --git a/thermion_dart/test/helpers.dart b/thermion_dart/test/helpers.dart index 268fe648..815112c2 100644 --- a/thermion_dart/test/helpers.dart +++ b/thermion_dart/test/helpers.dart @@ -1,3 +1,5 @@ +// ignore_for_file: unused_local_variable + import 'dart:ffi'; import 'dart:io'; import 'dart:math'; @@ -10,7 +12,6 @@ import 'package:thermion_dart/src/utils/src/dart_resources.dart'; import 'package:thermion_dart/src/viewer/src/ffi/src/thermion_dart.g.dart'; import 'package:thermion_dart/src/viewer/src/ffi/src/thermion_viewer_ffi.dart'; import 'package:thermion_dart/src/viewer/src/ffi/thermion_viewer_ffi.dart'; -import 'package:thermion_dart/src/viewer/src/shared_types/view.dart'; import 'package:thermion_dart/thermion_dart.dart'; import 'package:vector_math/vector_math_64.dart'; import 'package:path/path.dart' as p; @@ -101,9 +102,7 @@ class TestHelper { } Future createTexture(int width, int height) async { - final packageUri = findPackageRoot('thermion_dart'); - var testDir = Directory("${packageUri.toFilePath()}/test").path; - + final object = ThermionTextureSwift.new1(); object.initWithWidth_height_(width, height); return object; @@ -191,7 +190,7 @@ Future pixelBufferToBmp( } Future pixelsToPng(Uint8List pixelBuffer, int width, int height, - {bool linearToSrgb = false}) async { + {bool linearToSrgb = false, bool invertAces=false}) async { final image = img.Image(width: width, height: height); for (int y = 0; y < height; y++) { @@ -203,7 +202,6 @@ Future pixelsToPng(Uint8List pixelBuffer, int width, int height, int a = pixelBuffer[pixelIndex + 3]; // Apply inverse ACES tone mapping - bool invertAces = false; if (invertAces) { r = _inverseACESToneMapping(r); g = _inverseACESToneMapping(g); diff --git a/thermion_dart/test/skybox_tests.dart b/thermion_dart/test/skybox_tests.dart index 0984f97d..aec904f6 100644 --- a/thermion_dart/test/skybox_tests.dart +++ b/thermion_dart/test/skybox_tests.dart @@ -1,4 +1,3 @@ -import 'dart:async'; import 'package:test/test.dart'; import 'helpers.dart'; diff --git a/thermion_dart/test/view_tests.dart b/thermion_dart/test/view_tests.dart index 6b0acb41..65e641fb 100644 --- a/thermion_dart/test/view_tests.dart +++ b/thermion_dart/test/view_tests.dart @@ -1,3 +1,5 @@ +// ignore_for_file: unused_local_variable + import 'dart:async'; import 'package:test/test.dart';