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

oracle / opengrok / #3679

03 Nov 2023 03:39PM UTC coverage: 66.067% (-9.3%) from 75.356%
#3679

push

vladak
closes 4468

Signed-off-by: Gino Augustine <ginoaugustine@gmail.com>

4 of 4 new or added lines in 1 file covered. (100.0%)

5729 existing lines in 109 files now uncovered.

38719 of 58606 relevant lines covered (66.07%)

0.66 hits per line

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

80.0
/opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/sql/PLSQLAnalyzer.java
1
/*
2
 * CDDL HEADER START
3
 *
4
 * The contents of this file are subject to the terms of the
5
 * Common Development and Distribution License (the "License").
6
 * You may not use this file except in compliance with the License.
7
 *
8
 * See LICENSE.txt included in this distribution for the specific
9
 * language governing permissions and limitations under the License.
10
 *
11
 * When distributing Covered Code, include this CDDL HEADER in each
12
 * file and include the License file at LICENSE.txt.
13
 * If applicable, add the following below this CDDL HEADER, with the
14
 * fields enclosed by brackets "[]" replaced with your own identifying
15
 * information: Portions Copyright [yyyy] [name of copyright owner]
16
 *
17
 * CDDL HEADER END
18
 */
19

20
/*
21
 * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
22
 * Portions Copyright (c) 2017, 2020, Chris Fraire <cfraire@me.com>.
23
 */
24
package org.opengrok.indexer.analysis.sql;
25

26
import java.io.Reader;
27

28
import org.opengrok.indexer.analysis.AbstractAnalyzer;
29
import org.opengrok.indexer.analysis.AnalyzerFactory;
30
import org.opengrok.indexer.analysis.JFlexTokenizer;
31
import org.opengrok.indexer.analysis.JFlexXref;
32
import org.opengrok.indexer.analysis.plain.PlainAnalyzer;
33

34
@SuppressWarnings("java:S110")
35
public class PLSQLAnalyzer extends PlainAnalyzer {
36

37
    public PLSQLAnalyzer(AnalyzerFactory factory) {
38
        super(factory, () -> new JFlexTokenizer(new PLSQLSymbolTokenizer(
1✔
39
                AbstractAnalyzer.DUMMY_READER)));
40
    }
1✔
41

42
    /**
43
     * @return {@code "SQL"}
44
     */
45
    @Override
46
    public String getCtagsLang() {
47
        return "SQL";
1✔
48
    }
49

50
    /**
51
     * Gets a version number to be used to tag processed documents so that
52
     * re-analysis can be re-done later if a stored version number is different
53
     * from the current implementation.
54
     * @return 20191216_00
55
     */
56
    @Override
57
    protected int getSpecializedVersionNo() {
58
        return 20191216_00; // Edit comment above too!
1✔
59
    }
60

61
    /**
62
     * Creates a wrapped {@link PLSQLXref} instance.
63
     * @param reader the data to produce xref for
64
     * @return a defined instance
65
     */
66
    @Override
67
    protected JFlexXref newXref(Reader reader) {
UNCOV
68
        return new JFlexXref(new PLSQLXref(reader));
×
69
    }
70
}
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