-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
c9c4294
commit d438a66
Showing
40 changed files
with
299 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
Completions are now disabled. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
Completions are now enabled. | ||
|
3 changes: 3 additions & 0 deletions
3
pkg/flink/components/.snapshots/TestPrintDiagnosticsStateFalse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
Diagnostics are now disabled. | ||
|
4 changes: 4 additions & 0 deletions
4
pkg/flink/components/.snapshots/TestPrintDiagnosticsStateTrue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
You should now see the errors in your SQL statement highlighted as you type, if there are any. | ||
Diagnostics are now enabled. | ||
|
3 changes: 3 additions & 0 deletions
3
pkg/flink/components/.snapshots/TestPrintSmartCompletionFalse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
Smart Completion is now disabled | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
Smart Completion is now enabled | ||
|
4 changes: 4 additions & 0 deletions
4
pkg/flink/components/.snapshots/TestPrintSmartDiagnosticsStateTrue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
You should now see the errors in your SQL statement highlighted as you type, if there are any. | ||
Diagnostics are now enabled. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package components | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/bradleyjkemp/cupaloy/v2" | ||
|
||
"github.com/confluentinc/cli/v4/pkg/flink/test" | ||
) | ||
|
||
const maxCol = 100 | ||
|
||
func TestPrintCompletionsTrue(t *testing.T) { | ||
actual := test.RunAndCaptureSTDOUT(t, func() { | ||
PrintCompletionsState(true, maxCol) | ||
}) | ||
|
||
cupaloy.SnapshotT(t, actual) | ||
} | ||
|
||
func TestPrintCompletionsFalse(t *testing.T) { | ||
actual := test.RunAndCaptureSTDOUT(t, func() { | ||
PrintCompletionsState(false, maxCol) | ||
}) | ||
|
||
cupaloy.SnapshotT(t, actual) | ||
} | ||
|
||
func TestPrintDiagnosticsStateTrue(t *testing.T) { | ||
actual := test.RunAndCaptureSTDOUT(t, func() { | ||
PrintDiagnosticsState(true, maxCol) | ||
}) | ||
|
||
cupaloy.SnapshotT(t, actual) | ||
} | ||
|
||
func TestPrintDiagnosticsStateFalse(t *testing.T) { | ||
actual := test.RunAndCaptureSTDOUT(t, func() { | ||
PrintDiagnosticsState(false, maxCol) | ||
}) | ||
|
||
cupaloy.SnapshotT(t, actual) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.