Compare 016566b ... +0 ... 8b8ec42


@@ -1,59 +1,55 @@
Loading
1 -
            import 'package:flagr/model/eval_context.dart';
2 -
            import 'package:flagr/model/eval_debug_log.dart';
3 -
            import 'package:built_value/json_object.dart';
4 -
        import 'package:built_value/built_value.dart';
1 +
import 'package:flagr/model/eval_context.dart';
2 +
import 'package:flagr/model/eval_debug_log.dart';
3 +
import 'package:built_value/json_object.dart';
4 +
import 'package:built_value/built_value.dart';
5 5
import 'package:built_value/serializer.dart';
6 6
7 7
part 'eval_result.g.dart';
8 8
9 9
abstract class EvalResult implements Built<EvalResult, EvalResultBuilder> {
10 +
  @nullable
11 +
  @BuiltValueField(wireName: r'flagID')
12 +
  int get flagID;
10 13
11 -
    
12 -
        @nullable
13 -
    @BuiltValueField(wireName: r'flagID')
14 -
    int get flagID;
15 -
    
16 -
        @nullable
17 -
    @BuiltValueField(wireName: r'flagKey')
18 -
    String get flagKey;
19 -
    
20 -
        @nullable
21 -
    @BuiltValueField(wireName: r'flagSnapshotID')
22 -
    int get flagSnapshotID;
23 -
    
24 -
        @nullable
25 -
    @BuiltValueField(wireName: r'segmentID')
26 -
    int get segmentID;
27 -
    
28 -
        @nullable
29 -
    @BuiltValueField(wireName: r'variantID')
30 -
    int get variantID;
31 -
    
32 -
        @nullable
33 -
    @BuiltValueField(wireName: r'variantKey')
34 -
    String get variantKey;
35 -
    
36 -
        @nullable
37 -
    @BuiltValueField(wireName: r'variantAttachment')
38 -
    JsonObject get variantAttachment;
39 -
    
40 -
        @nullable
41 -
    @BuiltValueField(wireName: r'evalContext')
42 -
    EvalContext get evalContext;
43 -
    
44 -
        @nullable
45 -
    @BuiltValueField(wireName: r'timestamp')
46 -
    String get timestamp;
47 -
    
48 -
        @nullable
49 -
    @BuiltValueField(wireName: r'evalDebugLog')
50 -
    EvalDebugLog get evalDebugLog;
51 -
52 -
    // Boilerplate code needed to wire-up generated code
53 -
    EvalResult._();
54 -
55 -
    factory EvalResult([updates(EvalResultBuilder b)]) = _$EvalResult;
56 -
    static Serializer<EvalResult> get serializer => _$evalResultSerializer;
14 +
  @nullable
15 +
  @BuiltValueField(wireName: r'flagKey')
16 +
  String get flagKey;
57 17
58 -
}
18 +
  @nullable
19 +
  @BuiltValueField(wireName: r'flagSnapshotID')
20 +
  int get flagSnapshotID;
21 +
22 +
  @nullable
23 +
  @BuiltValueField(wireName: r'segmentID')
24 +
  int get segmentID;
25 +
26 +
  @nullable
27 +
  @BuiltValueField(wireName: r'variantID')
28 +
  int get variantID;
29 +
30 +
  @nullable
31 +
  @BuiltValueField(wireName: r'variantKey')
32 +
  String get variantKey;
33 +
34 +
  @nullable
35 +
  @BuiltValueField(wireName: r'variantAttachment')
36 +
  JsonObject get variantAttachment;
59 37
38 +
  @nullable
39 +
  @BuiltValueField(wireName: r'evalContext')
40 +
  EvalContext get evalContext;
41 +
42 +
  @nullable
43 +
  @BuiltValueField(wireName: r'timestamp')
44 +
  String get timestamp;
45 +
46 +
  @nullable
47 +
  @BuiltValueField(wireName: r'evalDebugLog')
48 +
  EvalDebugLog get evalDebugLog;
49 +
50 +
  // Boilerplate code needed to wire-up generated code
51 +
  EvalResult._();
52 +
53 +
  factory EvalResult([updates(EvalResultBuilder b)]) = _$EvalResult;
54 +
  static Serializer<EvalResult> get serializer => _$evalResultSerializer;
55 +
}

@@ -1,22 +1,21 @@
Loading
1 -
            import 'package:built_collection/built_collection.dart';
2 -
            import 'package:flagr/model/eval_result.dart';
3 -
        import 'package:built_value/built_value.dart';
1 +
import 'package:built_collection/built_collection.dart';
2 +
import 'package:flagr/model/eval_result.dart';
3 +
import 'package:built_value/built_value.dart';
4 4
import 'package:built_value/serializer.dart';
5 5
6 6
part 'evaluation_batch_response.g.dart';
7 7
8 -
abstract class EvaluationBatchResponse implements Built<EvaluationBatchResponse, EvaluationBatchResponseBuilder> {
8 +
abstract class EvaluationBatchResponse
9 +
    implements Built<EvaluationBatchResponse, EvaluationBatchResponseBuilder> {
10 +
  @nullable
11 +
  @BuiltValueField(wireName: r'evaluationResults')
12 +
  BuiltList<EvalResult> get evaluationResults;
9 13
10 -
    
11 -
        @nullable
12 -
    @BuiltValueField(wireName: r'evaluationResults')
13 -
    BuiltList<EvalResult> get evaluationResults;
14 -
15 -
    // Boilerplate code needed to wire-up generated code
16 -
    EvaluationBatchResponse._();
17 -
18 -
    factory EvaluationBatchResponse([updates(EvaluationBatchResponseBuilder b)]) = _$EvaluationBatchResponse;
19 -
    static Serializer<EvaluationBatchResponse> get serializer => _$evaluationBatchResponseSerializer;
14 +
  // Boilerplate code needed to wire-up generated code
15 +
  EvaluationBatchResponse._();
20 16
17 +
  factory EvaluationBatchResponse([updates(EvaluationBatchResponseBuilder b)]) =
18 +
      _$EvaluationBatchResponse;
19 +
  static Serializer<EvaluationBatchResponse> get serializer =>
20 +
      _$evaluationBatchResponseSerializer;
21 21
}
22 -

@@ -1,34 +1,33 @@
Loading
1 -
            import 'package:built_collection/built_collection.dart';
2 -
            import 'package:flagr/model/evaluation_entity.dart';
3 -
        import 'package:built_value/built_value.dart';
1 +
import 'package:built_collection/built_collection.dart';
2 +
import 'package:flagr/model/evaluation_entity.dart';
3 +
import 'package:built_value/built_value.dart';
4 4
import 'package:built_value/serializer.dart';
5 5
6 6
part 'evaluation_batch_request.g.dart';
7 7
8 -
abstract class EvaluationBatchRequest implements Built<EvaluationBatchRequest, EvaluationBatchRequestBuilder> {
8 +
abstract class EvaluationBatchRequest
9 +
    implements Built<EvaluationBatchRequest, EvaluationBatchRequestBuilder> {
10 +
  @nullable
11 +
  @BuiltValueField(wireName: r'entities')
12 +
  BuiltList<EvaluationEntity> get entities;
9 13
10 -
    
11 -
        @nullable
12 -
    @BuiltValueField(wireName: r'entities')
13 -
    BuiltList<EvaluationEntity> get entities;
14 -
    
15 -
        @nullable
16 -
    @BuiltValueField(wireName: r'enableDebug')
17 -
    bool get enableDebug;
18 -
    /* flagIDs */
19 -
        @nullable
20 -
    @BuiltValueField(wireName: r'flagIDs')
21 -
    BuiltList<int> get flagIDs;
22 -
    /* flagKeys. Either flagIDs or flagKeys works. If pass in both, Flagr may return duplicate results. */
23 -
        @nullable
24 -
    @BuiltValueField(wireName: r'flagKeys')
25 -
    BuiltList<String> get flagKeys;
14 +
  @nullable
15 +
  @BuiltValueField(wireName: r'enableDebug')
16 +
  bool get enableDebug;
17 +
  /* flagIDs */
18 +
  @nullable
19 +
  @BuiltValueField(wireName: r'flagIDs')
20 +
  BuiltList<int> get flagIDs;
21 +
  /* flagKeys. Either flagIDs or flagKeys works. If pass in both, Flagr may return duplicate results. */
22 +
  @nullable
23 +
  @BuiltValueField(wireName: r'flagKeys')
24 +
  BuiltList<String> get flagKeys;
26 25
27 -
    // Boilerplate code needed to wire-up generated code
28 -
    EvaluationBatchRequest._();
29 -
30 -
    factory EvaluationBatchRequest([updates(EvaluationBatchRequestBuilder b)]) = _$EvaluationBatchRequest;
31 -
    static Serializer<EvaluationBatchRequest> get serializer => _$evaluationBatchRequestSerializer;
26 +
  // Boilerplate code needed to wire-up generated code
27 +
  EvaluationBatchRequest._();
32 28
29 +
  factory EvaluationBatchRequest([updates(EvaluationBatchRequestBuilder b)]) =
30 +
      _$EvaluationBatchRequest;
31 +
  static Serializer<EvaluationBatchRequest> get serializer =>
32 +
      _$evaluationBatchRequestSerializer;
33 33
}
34 -

@@ -1,29 +1,28 @@
Loading
1 -
            import 'package:built_value/json_object.dart';
2 -
        import 'package:built_value/built_value.dart';
1 +
import 'package:built_value/json_object.dart';
2 +
import 'package:built_value/built_value.dart';
3 3
import 'package:built_value/serializer.dart';
4 4
5 5
part 'evaluation_entity.g.dart';
6 6
7 -
abstract class EvaluationEntity implements Built<EvaluationEntity, EvaluationEntityBuilder> {
7 +
abstract class EvaluationEntity
8 +
    implements Built<EvaluationEntity, EvaluationEntityBuilder> {
9 +
  @nullable
10 +
  @BuiltValueField(wireName: r'entityID')
11 +
  String get entityID;
8 12
9 -
    
10 -
        @nullable
11 -
    @BuiltValueField(wireName: r'entityID')
12 -
    String get entityID;
13 -
    
14 -
        @nullable
15 -
    @BuiltValueField(wireName: r'entityType')
16 -
    String get entityType;
17 -
    
18 -
        @nullable
19 -
    @BuiltValueField(wireName: r'entityContext')
20 -
    JsonObject get entityContext;
13 +
  @nullable
14 +
  @BuiltValueField(wireName: r'entityType')
15 +
  String get entityType;
21 16
22 -
    // Boilerplate code needed to wire-up generated code
23 -
    EvaluationEntity._();
17 +
  @nullable
18 +
  @BuiltValueField(wireName: r'entityContext')
19 +
  JsonObject get entityContext;
24 20
25 -
    factory EvaluationEntity([updates(EvaluationEntityBuilder b)]) = _$EvaluationEntity;
26 -
    static Serializer<EvaluationEntity> get serializer => _$evaluationEntitySerializer;
21 +
  // Boilerplate code needed to wire-up generated code
22 +
  EvaluationEntity._();
27 23
24 +
  factory EvaluationEntity([updates(EvaluationEntityBuilder b)]) =
25 +
      _$EvaluationEntity;
26 +
  static Serializer<EvaluationEntity> get serializer =>
27 +
      _$evaluationEntitySerializer;
28 28
}
29 -

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
lib 0.27% 20.09%
Project Totals (37 files) 20.09%
Loading