• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

leonchen83 / redis-replicator / #2072

09 Dec 2023 02:37AM UTC coverage: 71.561% (-0.09%) from 71.653%
#2072

push

Baoyi Chen
test

3 of 3 new or added lines in 2 files covered. (100.0%)

4 existing lines in 1 file now uncovered.

6628 of 9262 relevant lines covered (71.56%)

0.72 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

27.78
/src/main/java/com/moilioncircle/redis/replicator/rdb/datatype/AuxField.java
1
/*
2
 * Copyright 2016-2018 Leon Chen
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *     http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16

17
package com.moilioncircle.redis.replicator.rdb.datatype;
18

19
import com.moilioncircle.redis.replicator.event.AbstractEvent;
20

21
/**
22
 * @author Leon Chen
23
 * @since 2.1.0
24
 */
25
public class AuxField extends AbstractEvent {
26

27
    private static final long serialVersionUID = 1L;
28

29
    private String auxKey;
30
    private String auxValue;
31

32
    public AuxField() {
×
33
    }
×
34

35
    public AuxField(String auxKey, String auxValue) {
1✔
36
        this.auxKey = auxKey;
1✔
37
        this.auxValue = auxValue;
1✔
38
    }
1✔
39

40
    public String getAuxKey() {
41
        return auxKey;
×
42
    }
43

44
    public String getAuxValue() {
45
        return auxValue;
×
46
    }
47

48
    public void setAuxKey(String auxKey) {
49
        this.auxKey = auxKey;
×
50
    }
×
51

52
    public void setAuxValue(String auxValue) {
53
        this.auxValue = auxValue;
×
54
    }
×
55

56
    @Override
57
    public String toString() {
58
        return "AuxField{" +
×
59
                "auxKey='" + auxKey + '\'' +
60
                ", auxValue='" + auxValue + '\'' +
61
                '}';
62
    }
63

64
    @Override
65
    public boolean equals(Object o) {
UNCOV
66
        if (this == o) return true;
×
UNCOV
67
        if (o == null || getClass() != o.getClass()) return false;
×
68

UNCOV
69
        AuxField auxField = (AuxField) o;
×
70

UNCOV
71
        return auxKey.equals(auxField.auxKey);
×
72
    }
73

74
    @Override
75
    public int hashCode() {
76
        return auxKey.hashCode();
1✔
77
    }
78
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc