Merge pull request #3366 from laytan/fix-vet-scope-bug

fix vet scope bug skipping some scopes
This commit is contained in:
gingerBill
2024-04-03 11:40:01 +01:00
committed by GitHub
19 changed files with 57 additions and 63 deletions
+2 -2
View File
@@ -1580,7 +1580,7 @@ run_png_suite :: proc(t: ^testing.T, suite: []PNG_Test) -> (subtotal: int) {
{
// Roundtrip through PBM to test the PBM encoders and decoders - prefer ASCII
pbm_info, pbm_format_selected := pbm.autoselect_pbm_format_from_image(img, false)
pbm_info, _ := pbm.autoselect_pbm_format_from_image(img, false)
// We already tested the binary formats above.
if pbm_info.header.format in pbm.ASCII {
@@ -1912,4 +1912,4 @@ run_png_suite :: proc(t: ^testing.T, suite: []PNG_Test) -> (subtotal: int) {
}
return
}
}
+6 -6
View File
@@ -32,7 +32,7 @@ map_insert_random_key_value :: proc(t: ^testing.T) {
}
key_count := 0
for k in m {
for _ in m {
key_count += 1
}
@@ -82,7 +82,7 @@ map_update_random_key_value :: proc(t: ^testing.T) {
}
key_count := 0
for k in m {
for _ in m {
key_count += 1
}
@@ -144,7 +144,7 @@ map_delete_random_key_value :: proc(t: ^testing.T) {
}
key_count := 0
for k in m {
for _ in m {
key_count += 1
}
@@ -220,7 +220,7 @@ set_insert_random_key_value :: proc(t: ^testing.T) {
}
key_count := 0
for k in m {
for _ in m {
key_count += 1
}
@@ -268,7 +268,7 @@ set_delete_random_key_value :: proc(t: ^testing.T) {
}
key_count := 0
for k in m {
for _ in m {
key_count += 1
}
@@ -379,4 +379,4 @@ when ODIN_TEST {
fmt.printf("[%v] ", loc)
fmt.printf("log: %v\n", v)
}
}
}