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

SpiNNakerManchester / JavaSpiNNaker / 6934

20 Aug 2025 08:47AM UTC coverage: 36.209% (-0.02%) from 36.232%
6934

push

github

web-flow
Merge pull request #1281 from SpiNNakerManchester/bump_more_versions

Bump more versions

1899 of 5884 branches covered (32.27%)

Branch coverage included in aggregate %.

34 of 49 new or added lines in 8 files covered. (69.39%)

24 existing lines in 6 files now uncovered.

8942 of 24056 relevant lines covered (37.17%)

0.74 hits per line

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

37.5
/SpiNNaker-allocserv/src/main/java/uk/ac/manchester/spinnaker/alloc/bmp/SpiNNakerControlDummy.java
1
/*
2
 * Copyright (c) 2025 The University of Manchester
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
 *     https://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 uk.ac.manchester.spinnaker.alloc.bmp;
17

18
import java.io.IOException;
19
import java.nio.ByteBuffer;
20
import java.util.Collection;
21
import java.util.HashMap;
22
import java.util.List;
23
import java.util.Map;
24

25
import uk.ac.manchester.spinnaker.machine.board.BMPBoard;
26
import uk.ac.manchester.spinnaker.messages.model.ADCInfo;
27
import uk.ac.manchester.spinnaker.messages.model.Blacklist;
28
import uk.ac.manchester.spinnaker.transceiver.ProcessException;
29

30
/**
31
 * Dummy implementation of the SpiNNakerControl interface.
32
 */
33
public class SpiNNakerControlDummy implements SpiNNakerControl {
2✔
34

35
        private static final String DUMMY_SERIAL = "00000000";
36

37
        private final Map<BMPBoard, Blacklist> blacklists = new HashMap<>();
2✔
38

39
        @Override
40
        public void powerOnAndCheck(List<BMPBoard> boards) throws ProcessException,
41
                        InterruptedException, IOException {
42
                // Do Nothing
43
        }
2✔
44

45
        @Override
46
        public void setLinkOff(Link link) throws ProcessException, IOException,
47
                        InterruptedException {
48
                // Do Nothing
49
        }
2✔
50

51
        @Override
52
        public void powerOff(Collection<BMPBoard> boards) throws ProcessException,
53
                        InterruptedException, IOException {
54
                // Do Nothing
55

56
        }
2✔
57

58
        @Override
59
        public String readSerial(BMPBoard board) throws ProcessException,
60
                        InterruptedException, IOException {
61
                return DUMMY_SERIAL;
×
62
        }
63

64
        @Override
65
        public ADCInfo readTemp(BMPBoard board) throws ProcessException,
66
                        IOException, InterruptedException {
67
                return new ADCInfo(ByteBuffer.wrap(new byte[ADCInfo.SIZE]));
×
68
        }
69

70
        @Override
71
        public Blacklist readBlacklist(BMPBoard board) throws ProcessException,
72
                        InterruptedException, IOException {
73
                if (blacklists.containsKey(board)) {
×
74
                        return blacklists.get(board);
×
75
                }
76
                return new Blacklist(ByteBuffer.wrap(new byte[Integer.BYTES]));
×
77
        }
78

79
        @Override
80
        public void writeBlacklist(BMPBoard board, Blacklist blacklist)
81
                        throws ProcessException, InterruptedException, IOException {
82
                blacklists.put(board, blacklist);
×
83
        }
×
84

85
        @Override
86
        public void ping(List<BMPBoard> boards) {
87
                // Do Nothing
88
        }
2✔
89

90
        @Override
91
        public void close() {
92
                // Do Nothing
NEW
93
        }
×
94

95
}
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