yuyi
ef5be22f81
all: replace generic <>
with []
- part 2 ( #16536 )
2022-11-26 18:23:26 +02:00
Delyan Angelov
cb336c7dc7
net.http: remove ending \r from response.status_msg, add more tests
2022-11-20 16:22:43 +02:00
shove
37700502f5
all: implement struct field optional and disallow storing result ( #16392 )
2022-11-17 07:51:50 +02:00
yuyi
017ace6ea7
vfmt: change all '$expr' to '${expr}' ( #16428 )
2022-11-15 16:53:13 +03:00
shove
26d643fc5d
all: rollback to old interpolation (step 3) ( #16380 )
2022-11-10 15:05:34 +03:00
shove
a199a9afab
all: rollback to old interpolation (step 2) ( #16373 )
2022-11-09 17:37:27 +03:00
Alexander Medvednikov
e81e0ac708
fmt: replace go
with spawn
2022-11-05 10:46:40 +03:00
yuyi
fd4045931a
scanner: fix the new string interpolation - println('{s == 'hello'}') ( fix #16318 ) ( #16319 )
...
* scanner: fix the new string interpolation - println('{s == 'hello'}')
* fix vlib/v/eval/gen/infix_gen.v
2022-11-03 23:06:11 +02:00
Delyan Angelov
f427a5241a
os,tools: add os.vtmp_dir()
...
Use it to consistently place all temporary files created by tests in a overridable folder specific to the user, that is easy to cleanup later.
NOTE: os.temp_dir() on macos returns `/tmp`, and using `/tmp/v` is a problem when multiple unix users are trying to access/create/write to it.
2022-11-03 10:19:51 +02:00
Alexander Medvednikov
c6158e4519
all: remove unnecessary IError() casts
2022-10-28 19:08:30 +03:00
Alexander Medvednikov
098db89b85
encoding.csv: remove unnecessary IError() cast
2022-10-27 11:30:08 +03:00
Alexander Medvednikov
c9934672c4
http: fix request_test.v
2022-10-27 11:28:44 +03:00
yuyi
992b502198
db, json, time, term: change optional to result ( #16201 )
2022-10-26 11:26:28 +03:00
Alexander Medvednikov
690b2c0b9d
doc: more Result fixes
2022-10-24 16:26:19 +03:00
Wertzui123
340611c298
net: add a net.tcp_socket_from_handle_raw
function ( #16167 )
2022-10-23 22:21:46 +03:00
Delyan Angelov
9241b5572b
net.http: skip network timeouts on socket accept in the main http.Server loop
2022-10-23 17:08:27 +03:00
Makhnev Petr
2f3c4c6d91
v fmt: fix extra space for lock/rlock without expressions ( #16103 )
2022-10-19 12:18:21 +03:00
Delyan Angelov
409a4f33a1
tools: add report_v_module_folders_without_tests.v . Use it to discover other modules without _test.v files. Add simple ones, to ensure CI can find more breakage on future wide changes to vlib/
2022-10-16 22:40:17 +03:00
Delyan Angelov
17800b4bca
ci: fix net.openssl, ensure that it is at least compiled, to avoid future regressions on sweeping vlib changes
2022-10-16 20:59:04 +03:00
yuyi
f6844e9766
all: change optional to result of io ( #16075 )
2022-10-16 09:28:57 +03:00
Thomas Peißl
0f229874a2
net.mbedtls: add explicit closing of the tcp connection in the shutdown method ( #16027 )
2022-10-10 19:30:58 +03:00
Swastik Baranwal
267e26ba1d
net: add unsafe block to int -> enum cast ( #15961 )
...
Fixes https://github.com/vlang/v/issues/15959
2022-10-03 21:56:06 +03:00
Swastik Baranwal
9fc64de94b
openssl: add unsafe blocks to int -> enum blocks ( #15957 )
2022-10-03 16:32:37 +03:00
Swastik Baranwal
b584e1df98
checker: allow EnumName(number)
casts only inside unsafe{}
blocks ( #15932 )
2022-10-02 22:39:11 +03:00
Delyan Angelov
3b420a8d7f
net.urllib: add a URL.debug() method, returning the values of all the URL's fields
2022-09-29 10:38:11 +03:00
TSURUTA Takumi
e72d259903
change Values struct to public ( #15902 )
2022-09-28 16:21:33 +03:00
spaceface
5c716afb39
net.ssl: switch to mbedtls over openssl ( #15841 )
2022-09-22 16:50:34 +03:00
Alfie Ranstead
27305d1a5f
net.websocket: swap unsafe use of nil for a safe default value ( #15836 )
2022-09-22 08:00:03 +03:00
yuyi
41dbd12bc4
tests: make error handling the same as the main function ( #15825 )
2022-09-21 19:45:43 +03:00
Delyan Angelov
f922ed0941
tests: unify all temporary files/folders under $VTMP/v
, that can be cleaned by v wipe-cache
( #15774 )
2022-09-16 04:56:19 +03:00
shove
8b962f8446
checker: fix nested struct reference type field initialized check. ( fix : #15741 ) ( #15752 )
2022-09-15 07:59:31 +03:00
Emin Arıcan
7672725204
net: fix typo ( #15688 )
2022-09-07 16:35:28 +03:00
shove
f285ebd91c
smtp: add base64 encoding to the body of the emails and use utf8, to prevent format confusion ( #15589 )
2022-08-29 09:19:46 +03:00
yuyi
c662431cfd
checker: check unsafe array assign ( fix #9651 ) ( #15515 )
2022-08-25 08:52:13 +03:00
shove
6ff753745f
smtp: send mail to multiple recipients. #15508 ( #15509 )
2022-08-23 20:50:41 +03:00
Delyan Angelov
499ab9bedb
tests: make tcp_self_dial_from_many_clients_test.v more robust (use shared ctx
)
2022-08-20 13:32:59 +03:00
Alexander Medvednikov
46f32fc10c
checker: require unsafe for free()
2022-08-20 08:03:07 +03:00
Delyan Angelov
26986eb2f8
tests: fix deprecation warning in tcp_test.v
2022-08-15 15:17:00 +03:00
Joe Conigliaro
f557acf76b
net.urllib: fix ipv6 address parsing [ipv6]:port
closes #15309
2022-08-13 00:50:38 +10:00
jrfondren
0b1486f014
http: avoid costly string interpolation of resp.body ( #15376 )
2022-08-08 04:36:45 +03:00
Vincenzo Palazzo
b01f71d9da
io: migrate the Reader
API to Result
instead of Option
( #15229 )
2022-08-08 02:33:25 +03:00
Emily Hudson
fd1b6efea6
net: add failed addresses + details on connect errors, make connect more robust in the default non blocking mode ( #15364 )
2022-08-07 10:40:05 +03:00
yuyi
0bf23488dc
checker: check struct field's fn call ( fix #15249 ) ( #15257 )
2022-07-29 19:00:51 +03:00
Delyan Angelov
de0683fe30
tests: fix compilation of tcp_test.v
2022-07-23 23:33:43 +03:00
Delyan Angelov
231623b75b
ci: vfmt tcp_test.v
2022-07-21 22:04:51 +03:00
shove
b4ed5d5f20
net: add a net.dial_tcp_with_bind/2 function ( #15055 ) ( #15056 )
2022-07-15 12:38:17 +03:00
Ken
1ae11b41e7
net.websocket: make logger configurable ( #14998 )
2022-07-09 17:39:07 +03:00
Ken
a50e0f0522
net.websocket: allow timeout to be configured ( #14941 )
2022-07-05 06:40:23 +03:00
WoodyAtHome
34517c340d
net: support blocking sockets in TcpSocket.connect ( #14849 )
2022-06-27 11:01:55 +03:00
yuyi
5a79a54fe4
all: fix all remaining unsafe 0 ( #14856 )
2022-06-26 17:04:23 +03:00