File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed
crates/pgt_workspace/src/workspace/server Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -1120,7 +1120,11 @@ mod tests {
1120
1120
fn comment_at_begin ( ) {
1121
1121
let path = PgTPath :: new ( "test.sql" ) ;
1122
1122
1123
- let mut doc = Document :: new ( path. clone ( ) , "-- Add new schema named \" private\" \n CREATE SCHEMA \" private\" ;" . to_string ( ) , 0 ) ;
1123
+ let mut doc = Document :: new (
1124
+ path. clone ( ) ,
1125
+ "-- Add new schema named \" private\" \n CREATE SCHEMA \" private\" ;" . to_string ( ) ,
1126
+ 0 ,
1127
+ ) ;
1124
1128
1125
1129
let change = ChangeFileParams {
1126
1130
path : path. clone ( ) ,
@@ -1133,7 +1137,10 @@ mod tests {
1133
1137
1134
1138
let changed = doc. apply_file_change ( & change) ;
1135
1139
1136
- assert_eq ! ( doc. content, "- Add new schema named \" private\" \n CREATE SCHEMA \" private\" ;" ) ;
1140
+ assert_eq ! (
1141
+ doc. content,
1142
+ "- Add new schema named \" private\" \n CREATE SCHEMA \" private\" ;"
1143
+ ) ;
1137
1144
1138
1145
assert_eq ! ( changed. len( ) , 3 ) ;
1139
1146
assert ! ( matches!(
@@ -1160,7 +1167,10 @@ mod tests {
1160
1167
1161
1168
let changed_2 = doc. apply_file_change ( & change_2) ;
1162
1169
1163
- assert_eq ! ( doc. content, "-- Add new schema named \" private\" \n CREATE SCHEMA \" private\" ;" ) ;
1170
+ assert_eq ! (
1171
+ doc. content,
1172
+ "-- Add new schema named \" private\" \n CREATE SCHEMA \" private\" ;"
1173
+ ) ;
1164
1174
1165
1175
assert_eq ! ( changed_2. len( ) , 3 ) ;
1166
1176
assert ! ( matches!(
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ _default:
2
2
just --list -u
3
3
4
4
alias f := format
5
- alias t := test
6
5
alias r := ready
7
6
alias l := lint
7
+ alias t := test
8
8
9
9
# Installs the tools needed to develop
10
10
install-tools :
@@ -109,4 +109,4 @@ merge-main:
109
109
110
110
# Make sure to set your PGT_LOG_PATH in your shell profile.
111
111
show-logs :
112
- tail -f $(ls $PGT_LOG_PATH/ server.log.* | sort -t- -k2,2 -k3,3 -k4,4 | tail -n 1 )
112
+ tail -f $(ls $PGT_LOG_PATH/ server.log.* | sort -t- -k2,2 -k3,3 -k4,4 | tail -n 1 )
You can’t perform that action at this time.
0 commit comments