Skip to content

Commit

Permalink
Deleted test that was not relevant.
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikvdkaaden committed Feb 29, 2024
1 parent da2514b commit 4d464fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 46 deletions.
4 changes: 2 additions & 2 deletions floor_annotation/lib/src/type_converters.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import 'package:meta/meta.dart';
@experimental
class TypeConverters {
/// The list of type converter classes.
final List<Type> value;
final List<Type>? value;

const TypeConverters({this.value = const []});
const TypeConverters(this.value);
}
44 changes: 0 additions & 44 deletions floor_generator/test/processor/entity_processor_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -279,50 +279,6 @@ void main() {
);
expect(actual, equals(expected));
});

test('error with wrong onUpdate Annotation', () async {
final classElements = await _createClassElements('''
@entity
class Person {
@primaryKey
final int id;
final String name;
Person(this.id, this.name);
}
@Entity(
foreignKeys: [
ForeignKey(
childColumns: ['owner_id'],
parentColumns: ['id'],
entity: Person,
onUpdate: null
onDelete: ForeignKeyAction.setNull,
)
],
)
class Dog {
@primaryKey
final int id;
final String name;
@ColumnInfo(name: 'owner_id')
final int ownerId;
Dog(this.id, this.name, this.ownerId);
}
''');

final processor = EntityProcessor(classElements[1], {});
expect(
processor.process,
throwsInvalidGenerationSourceError(
EntityProcessorError(classElements[1]).wrongForeignKeyAction(
FakeDartObject(), ForeignKeyField.onUpdate)));
});
});

group('fts keys', () {
Expand Down

0 comments on commit 4d464fa

Please sign in to comment.