Skip to content

Commit

Permalink
refactor: update import paths for tester-utils packages in internal p…
Browse files Browse the repository at this point in the history
…ackage
  • Loading branch information
libmartinito committed Mar 7, 2024
1 parent 4699d9a commit 7f05c7c
Show file tree
Hide file tree
Showing 17 changed files with 36 additions and 36 deletions.
4 changes: 2 additions & 2 deletions internal/stage_alternation.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package internal

import (
tester_utils "github.com/codecrafters-io/tester-utils"
"github.com/codecrafters-io/tester-utils/test_case_harness"
)

func testAlternation(stageHarness *tester_utils.StageHarness) error {
func testAlternation(stageHarness *test_case_harness.TestCaseHarness) error {
testCases := []TestCase{
{
Pattern: "a (cat|dog)",
Expand Down
4 changes: 2 additions & 2 deletions internal/stage_backreferences_multiple.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package internal

import (
tester_utils "github.com/codecrafters-io/tester-utils"
"github.com/codecrafters-io/tester-utils/test_case_harness"
)

func testBackreferencesMultiple(stageHarness *tester_utils.StageHarness) error {
func testBackreferencesMultiple(stageHarness *test_case_harness.TestCaseHarness) error {
testCases := []TestCase{
// Base case
{
Expand Down
4 changes: 2 additions & 2 deletions internal/stage_backreferences_nested.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package internal

import (
tester_utils "github.com/codecrafters-io/tester-utils"
"github.com/codecrafters-io/tester-utils/test_case_harness"
)

func testBackreferencesNested(stageHarness *tester_utils.StageHarness) error {
func testBackreferencesNested(stageHarness *test_case_harness.TestCaseHarness) error {
testCases := []TestCase{
// Base case
{
Expand Down
4 changes: 2 additions & 2 deletions internal/stage_backreferences_single.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package internal

import (
tester_utils "github.com/codecrafters-io/tester-utils"
"github.com/codecrafters-io/tester-utils/test_case_harness"
)

func testBackreferencesSingle(stageHarness *tester_utils.StageHarness) error {
func testBackreferencesSingle(stageHarness *test_case_harness.TestCaseHarness) error {
testCases := []TestCase{
// Base case
{
Expand Down
4 changes: 2 additions & 2 deletions internal/stage_combining_character_classes.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package internal

import tester_utils "github.com/codecrafters-io/tester-utils"
import "github.com/codecrafters-io/tester-utils/test_case_harness"

func testCombiningCharacterClasses(stageHarness *tester_utils.StageHarness) error {
func testCombiningCharacterClasses(stageHarness *test_case_harness.TestCaseHarness) error {
testCases := []TestCase{
{
Pattern: `\d apple`,
Expand Down
4 changes: 2 additions & 2 deletions internal/stage_end_of_string_anchor.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package internal

import (
tester_utils "github.com/codecrafters-io/tester-utils"
"github.com/codecrafters-io/tester-utils/test_case_harness"
)

func testEndOfStringAnchor(stageHarness *tester_utils.StageHarness) error {
func testEndOfStringAnchor(stageHarness *test_case_harness.TestCaseHarness) error {
testCases := []TestCase{
{
Pattern: "cat$",
Expand Down
4 changes: 2 additions & 2 deletions internal/stage_init.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package internal

import (
tester_utils "github.com/codecrafters-io/tester-utils"
"github.com/codecrafters-io/tester-utils/test_case_harness"
)

func testInit(stageHarness *tester_utils.StageHarness) error {
func testInit(stageHarness *test_case_harness.TestCaseHarness) error {
testCases := []TestCase{
{
Pattern: "d",
Expand Down
4 changes: 2 additions & 2 deletions internal/stage_match_alphanumeric.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package internal

import (
tester_utils "github.com/codecrafters-io/tester-utils"
"github.com/codecrafters-io/tester-utils/test_case_harness"
)

func testMatchAlphanumeric(stageHarness *tester_utils.StageHarness) error {
func testMatchAlphanumeric(stageHarness *test_case_harness.TestCaseHarness) error {
testCases := []TestCase{
{
Pattern: `\w`,
Expand Down
4 changes: 2 additions & 2 deletions internal/stage_match_digit.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package internal

import (
tester_utils "github.com/codecrafters-io/tester-utils"
"github.com/codecrafters-io/tester-utils/test_case_harness"
)

func testMatchDigit(stageHarness *tester_utils.StageHarness) error {
func testMatchDigit(stageHarness *test_case_harness.TestCaseHarness) error {
testCases := []TestCase{
{
Pattern: `\d`,
Expand Down
4 changes: 2 additions & 2 deletions internal/stage_negative_character_groups.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package internal

import tester_utils "github.com/codecrafters-io/tester-utils"
import "github.com/codecrafters-io/tester-utils/test_case_harness"

func testNegativeCharacterGroups(stageHarness *tester_utils.StageHarness) error {
func testNegativeCharacterGroups(stageHarness *test_case_harness.TestCaseHarness) error {
testCases := []TestCase{
{
Pattern: "[^xyz]",
Expand Down
4 changes: 2 additions & 2 deletions internal/stage_one_or_more_quantifier.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package internal

import (
tester_utils "github.com/codecrafters-io/tester-utils"
"github.com/codecrafters-io/tester-utils/test_case_harness"
)

func testOneOrMoreQuantifier(stageHarness *tester_utils.StageHarness) error {
func testOneOrMoreQuantifier(stageHarness *test_case_harness.TestCaseHarness) error {
testCases := []TestCase{
{
Pattern: "ca+t",
Expand Down
4 changes: 2 additions & 2 deletions internal/stage_positive_character_groups.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package internal

import tester_utils "github.com/codecrafters-io/tester-utils"
import "github.com/codecrafters-io/tester-utils/test_case_harness"

func testPositiveCharacterGroups(stageHarness *tester_utils.StageHarness) error {
func testPositiveCharacterGroups(stageHarness *test_case_harness.TestCaseHarness) error {
testCases := []TestCase{
{
Pattern: "[abcd]",
Expand Down
4 changes: 2 additions & 2 deletions internal/stage_start_of_string_anchor.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package internal

import (
tester_utils "github.com/codecrafters-io/tester-utils"
"github.com/codecrafters-io/tester-utils/test_case_harness"
)

func testStartOfStringAnchor(stageHarness *tester_utils.StageHarness) error {
func testStartOfStringAnchor(stageHarness *test_case_harness.TestCaseHarness) error {
testCases := []TestCase{
{
Pattern: "^log",
Expand Down
4 changes: 2 additions & 2 deletions internal/stage_wildcard.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package internal

import (
tester_utils "github.com/codecrafters-io/tester-utils"
"github.com/codecrafters-io/tester-utils/test_case_harness"
)

func testWildcard(stageHarness *tester_utils.StageHarness) error {
func testWildcard(stageHarness *test_case_harness.TestCaseHarness) error {
testCases := []TestCase{
{
Pattern: "c.t",
Expand Down
4 changes: 2 additions & 2 deletions internal/stage_zero_or_one_quantifier.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package internal

import (
tester_utils "github.com/codecrafters-io/tester-utils"
"github.com/codecrafters-io/tester-utils/test_case_harness"
)

func testZeroOrOneQuantifier(stageHarness *tester_utils.StageHarness) error {
func testZeroOrOneQuantifier(stageHarness *test_case_harness.TestCaseHarness) error {
testCases := []TestCase{
{
Pattern: "ca?t",
Expand Down
4 changes: 2 additions & 2 deletions internal/test_case.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package internal

import (
"fmt"
tester_utils "github.com/codecrafters-io/tester-utils"
"github.com/codecrafters-io/tester-utils/test_case_harness"
)

type TestCase struct {
Expand All @@ -11,7 +11,7 @@ type TestCase struct {
ExpectedExitCode int
}

func RunTestCases(testCases []TestCase, stageHarness *tester_utils.StageHarness) error {
func RunTestCases(testCases []TestCase, stageHarness *test_case_harness.TestCaseHarness) error {
logger := stageHarness.Logger
executable := stageHarness.Executable

Expand Down
8 changes: 4 additions & 4 deletions internal/tester_definition.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package internal

import (
testerutils "github.com/codecrafters-io/tester-utils"
"github.com/codecrafters-io/tester-utils/tester_definition"
"time"
)

var testerDefinition = testerutils.TesterDefinition{
AntiCheatTestCases: []testerutils.TestCase{},
var testerDefinition = tester_definition.TesterDefinition{
AntiCheatTestCases: []tester_definition.TestCase{},
ExecutableFileName: "your_grep.sh",
TestCases: []testerutils.TestCase{
TestCases: []tester_definition.TestCase{
{
Slug: "init",
TestFunc: testInit,
Expand Down

0 comments on commit 7f05c7c

Please sign in to comment.