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

common-workflow-language / cwlviewer / #1992

12 May 2026 05:53PM UTC coverage: 70.861% (+0.5%) from 70.334%
#1992

Pull #751

github

kinow
Build CodeQL with JVM 25
Pull Request #751: Bump org.springframework.boot:spring-boot-starter-parent from 3.1.4 to 4.1.0-RC1

42 of 90 new or added lines in 23 files covered. (46.67%)

19 existing lines in 3 files now uncovered.

1695 of 2392 relevant lines covered (70.86%)

0.71 hits per line

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

0.0
/src/main/java/org/commonwl/view/util/StreamGobbler.java
1
/*
2
 * Licensed to the Apache Software Foundation (ASF) under one
3
 * or more contributor license agreements.  See the NOTICE file
4
 * distributed with this work for additional information
5
 * regarding copyright ownership.  The ASF licenses this file
6
 * to you under the Apache License, Version 2.0 (the
7
 * "License"); you may not use this file except in compliance
8
 * with the License.  You may obtain a copy of the License at
9
 *
10
 *   http://www.apache.org/licenses/LICENSE-2.0
11
 *
12
 * Unless required by applicable law or agreed to in writing,
13
 * software distributed under the License is distributed on an
14
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
 * KIND, either express or implied.  See the License for the
16
 * specific language governing permissions and limitations
17
 * under the License.
18
 */
19

20
package org.commonwl.view.util;
21

22
import java.io.BufferedReader;
23
import java.io.IOException;
24
import java.io.InputStream;
25
import java.io.InputStreamReader;
26
import org.slf4j.Logger;
27
import org.slf4j.LoggerFactory;
28

29
/** Background thread to consume stream and collect contents */
30
public class StreamGobbler extends Thread {
NEW
31
  private static final Logger logger = LoggerFactory.getLogger(StreamGobbler.class);
×
NEW
32
  private final String lineSeparator = System.lineSeparator();
×
33

34
  private final InputStream is;
35
  private String content = "";
×
36

37
  public StreamGobbler(InputStream is) {
×
38
    this.is = is;
×
39
  }
×
40

41
  public void run() {
NEW
42
    final StringBuilder sb = new StringBuilder();
×
43

NEW
44
    try (BufferedReader br = new BufferedReader(new InputStreamReader(is))) {
×
45
      String line;
46
      while ((line = br.readLine()) != null) {
×
NEW
47
        sb.append(line).append(lineSeparator);
×
48
      }
49
    } catch (IOException ex) {
×
NEW
50
      logger.error(ex.getMessage(), ex);
×
51
    }
×
52

NEW
53
    content = sb.toString();
×
UNCOV
54
  }
×
55

56
  public String getContent() {
57
    return content;
×
58
  }
59
}
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