Skip to content

Commit

Permalink
Merge pull request #5563 from mP1/feature/SpreadsheetFormatParsersTes…
Browse files Browse the repository at this point in the history
…t-dead-code-removed

SpreadsheetFormatParsersTest dead-code removed
  • Loading branch information
mP1 authored Jan 14, 2025
2 parents 5bd4d15 + 0691050 commit eaea16d
Showing 1 changed file with 0 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
import walkingkooka.collect.list.Lists;
import walkingkooka.reflect.JavaVisibility;
import walkingkooka.reflect.PublicStaticHelperTesting;
import walkingkooka.text.cursor.TextCursor;
import walkingkooka.text.cursor.TextCursorSavePoint;
import walkingkooka.text.cursor.TextCursors;
import walkingkooka.text.cursor.parser.Parser;
import walkingkooka.text.cursor.parser.ParserReporters;
import walkingkooka.text.cursor.parser.ParserTesting2;
Expand All @@ -33,7 +30,6 @@
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;
import java.util.function.BiFunction;
import java.util.stream.Collectors;

Expand Down Expand Up @@ -13816,51 +13812,6 @@ private void parseAndCheck4(final Parser<SpreadsheetFormatParserContext> parser,
);
}

private void parseFailAndCheck2(final Parser<SpreadsheetFormatParserContext> parser,
final SpreadsheetFormatParserToken... tokens) {
// https://github.com/mP1/walkingkooka-spreadsheet/issues/2626
final TextCursor cursor = TextCursors.charSequence(
ParserToken.text(
Lists.of(tokens)
)
);
final TextCursorSavePoint start = cursor.save();

this.parse(
parser,
cursor,
this.createContext()
);
this.checkNotEquals(
"",
start.textBetween().toString()
);
}

private void parseFailAndCheck3(final Parser<SpreadsheetFormatParserContext> parser,
final SpreadsheetFormatParserToken... tokens) {
// https://github.com/mP1/walkingkooka-spreadsheet/issues/2626
final String text = ParserToken.text(
Lists.of(tokens)
);
final TextCursor cursor = TextCursors.charSequence(text);
final TextCursorSavePoint start = cursor.save();

this.checkEquals(
Optional.empty(),
this.parse(
parser,
cursor,
this.createContext()
)
);

this.checkEquals(
text,
start.textBetween().toString()
);
}

@Override
public Parser<SpreadsheetFormatParserContext> createParser() {
return Parsers.fake();
Expand Down

0 comments on commit eaea16d

Please sign in to comment.