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

Glusk / srp6-variables / 171

pending completion
171

push

travis-ci-com

web-flow
Merge pull request #83 from Glusk/issue-77

#77 Added. Missing tests.

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

230 of 245 relevant lines covered (93.88%)

0.94 hits per line

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

0.0
/src/main/java/com.github.glusk.srp6_variables/com/github/glusk/srp6_variables/BytesView.java
1
package com.github.glusk.srp6_variables;
2

3
import java.nio.ByteOrder;
4

5
import com.github.glusk.caesar.AbstractBytes;
6

7
/** An SRP-6 Integer Variable Bytes view. */
8
public final class BytesView extends AbstractBytes {
9
    /** An SRP-6 Integer Variable to view as Bytes. */
10
    private final SRP6IntegerVariable variableToViewAsBytes;
11
    /**
12
     * The byte order to use when converting {@code variableToViewAsBytes}
13
     * to Bytes.
14
     */
15
    private final ByteOrder order;
16

17
    /**
18
     * Creates a new SRP-6 Integer Variable Bytes view by wrapping
19
     * {@code variableToViewAsBytes} and {@code} order}.
20
     *
21
     * @param variableToViewAsBytes an SRP-6 Integer Variable to view as Bytes
22
     * @param order the byte order to use when converting
23
     *              {@code variableToViewAsBytes} to Bytes
24
     */
25
    @SuppressWarnings("checkstyle:hiddenfield")
26
    public BytesView(
27
        final SRP6IntegerVariable variableToViewAsBytes,
28
        final ByteOrder order
29
    ) {
×
30
        this.variableToViewAsBytes = variableToViewAsBytes;
×
31
        this.order = order;
×
32
    }
×
33
    @Override
34
    public byte[] asArray() {
35
        return this.variableToViewAsBytes.bytes(this.order).asArray();
×
36
    }
37
}
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