<commit_before>import 'package:flutter/widgets.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/mockito.dart';

export 'package:flutter_test/flutter_test.dart' hide Func0, Func1;
export 'package:mockito/mockito.dart';

class MockHook<R> extends Hook<R> {
  final MockHookState<R> state;

  MockHook([MockHookState<R> state]) : state = state ?? MockHookState();

  @override
  MockHookState<R> createState() => state;
}

class MockHookState<R> extends Mock implements HookState<R, MockHook<R>> {}

abstract class _Func0<R> {
  R call();
}

class Func0<R> extends Mock implements _Func0<R> {}

abstract class _Func1<T1, R> {
  R call(T1 value);
}

class Func1<T1, R> extends Mock implements _Func1<T1, R> {}

class HookTest<R> extends Hook<R> {
  final R Function(HookContext context) build;
  final void Function() dispose;
  final void Function() initHook;
  final void Function(HookTest<R> previousHook) didUpdateHook;<commit_msg>fix coverage bug<commit_after>import 'package:flutter/widgets.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/mockito.dart';

export 'package:flutter_test/flutter_test.dart' hide Func0, Func1;
export 'package:mockito/mockito.dart';

abstract class _Func0<R> {
  R call();
}

class Func0<R> extends Mock implements _Func0<R> {}

abstract class _Func1<T1, R> {
  R call(T1 value);
}

class Func1<T1, R> extends Mock implements _Func1<T1, R> {}

class HookTest<R> extends Hook<R> {
  final R Function(HookContext context) build;
  final void Function() dispose;
  final void Function() initHook;
  final void Function(HookTest<R> previousHook) didUpdateHook;
{'fraction_non_alphanumeric': 0.12278697886921759, 'fraction_numerical': 0.013706453455168474, 'mean_word_length': 6.209876543209877, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 30, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1302015', 'n_tokens_mistral': 619, 'n_tokens_neox': 615, 'n_words': 150}