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

LearnLib / learnlib / 6433387082

06 Oct 2023 03:10PM UTC coverage: 92.296% (-0.007%) from 92.303%
6433387082

push

github

mtf90
update Falk's developer id

11573 of 12539 relevant lines covered (92.3%)

1.67 hits per line

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

78.57
/drivers/basic/src/main/java/de/learnlib/drivers/reflect/ReturnValue.java
1
/* Copyright (C) 2013-2023 TU Dortmund
2
 * This file is part of LearnLib, http://www.learnlib.de/.
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
package de.learnlib.drivers.reflect;
17

18
import java.util.Objects;
19

20
import org.checkerframework.checker.nullness.qual.Nullable;
21

22
/**
23
 * Error output.
24
 */
25
public class ReturnValue extends MethodOutput {
26

27
    private final @Nullable Object ret;
28

29
    private final String id;
30

31
    public ReturnValue(@Nullable Object ret) {
2✔
32
        this.ret = ret;
2✔
33
        this.id = String.valueOf(ret);
2✔
34
    }
2✔
35

36
    @Override
37
    public final int hashCode() {
38
        return Objects.hashCode(this.id);
1✔
39
    }
40

41
    @Override
42
    public final boolean equals(@Nullable Object obj) {
43
        if (this == obj) {
1✔
44
            return true;
1✔
45
        }
46
        if (!(obj instanceof ReturnValue)) {
1✔
47
            return false;
×
48
        }
49

50
        final ReturnValue other = (ReturnValue) obj;
1✔
51
        return Objects.equals(this.id, other.id);
1✔
52
    }
53

54
    @Override
55
    public String toString() {
56
        return this.id;
1✔
57
    }
58

59
    /**
60
     * @return the cause
61
     */
62
    public @Nullable Object getValue() {
63
        return ret;
×
64
    }
65

66
    /**
67
     * @return the id
68
     */
69
    public String getId() {
70
        return id;
×
71
    }
72
}
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

© 2025 Coveralls, Inc