sx sync: catch bindings take parens; Allocator.alloc -> alloc_bytes
This commit is contained in:
@@ -99,7 +99,7 @@ main :: () -> s32 {
|
||||
arts1.append(mk_artifact("art_01b", "rel_01", "not-a-sha")); // invalid digest
|
||||
failed := false;
|
||||
was_validation := false;
|
||||
repo.publish(mk_release("rel_01", "1.1.0"), @arts1, the_channel()) catch e {
|
||||
repo.publish(mk_release("rel_01", "1.1.0"), @arts1, the_channel()) catch (e) {
|
||||
failed = true;
|
||||
was_validation = (e == error.Validation);
|
||||
};
|
||||
@@ -123,7 +123,7 @@ main :: () -> s32 {
|
||||
arts2.append(mk_artifact("art_02", "WRONG", DIGEST_B)); // release_id mismatch
|
||||
ifailed := false;
|
||||
was_integrity := false;
|
||||
repo.publish(mk_release("rel_02", "1.2.0"), @arts2, the_channel()) catch e {
|
||||
repo.publish(mk_release("rel_02", "1.2.0"), @arts2, the_channel()) catch (e) {
|
||||
ifailed = true;
|
||||
was_integrity = (e == error.Integrity);
|
||||
};
|
||||
@@ -145,7 +145,7 @@ main :: () -> s32 {
|
||||
arts_xc.append(mk_artifact("art_xc", "rel_xc", DIGEST_B)); // self-consistent artifact
|
||||
xc_failed := false;
|
||||
xc_integrity := false;
|
||||
repo.publish(mk_release("rel_xc", "1.3.0"), @arts_xc, mk_channel_for("app_02")) catch e {
|
||||
repo.publish(mk_release("rel_xc", "1.3.0"), @arts_xc, mk_channel_for("app_02")) catch (e) {
|
||||
xc_failed = true;
|
||||
xc_integrity = (e == error.Integrity);
|
||||
};
|
||||
@@ -170,7 +170,7 @@ main :: () -> s32 {
|
||||
arts_xa.append(mk_artifact_for("art_xa", "app_02", "rel_xa", DIGEST_B));
|
||||
xa_failed := false;
|
||||
xa_integrity := false;
|
||||
repo.publish(mk_release("rel_xa", "1.4.0"), @arts_xa, the_channel()) catch e {
|
||||
repo.publish(mk_release("rel_xa", "1.4.0"), @arts_xa, the_channel()) catch (e) {
|
||||
xa_failed = true;
|
||||
xa_integrity = (e == error.Integrity);
|
||||
};
|
||||
@@ -196,7 +196,7 @@ main :: () -> s32 {
|
||||
arts_cn.append(mk_artifact("art_cn", "rel_cn", DIGEST_B)); // self-consistent artifact
|
||||
cn_failed := false;
|
||||
cn_integrity := false;
|
||||
repo.publish(mk_release("rel_cn", "1.5.0"), @arts_cn, mk_named_channel("app_01", "beta")) catch e {
|
||||
repo.publish(mk_release("rel_cn", "1.5.0"), @arts_cn, mk_named_channel("app_01", "beta")) catch (e) {
|
||||
cn_failed = true;
|
||||
cn_integrity = (e == error.Integrity);
|
||||
};
|
||||
@@ -222,7 +222,7 @@ main :: () -> s32 {
|
||||
arts_dup.append(mk_artifact("art_dup", "rel_00", DIGEST_B));
|
||||
dup_failed := false;
|
||||
dup_integrity := false;
|
||||
repo.publish(mk_release("rel_00", "9.9.9"), @arts_dup, the_channel()) catch e {
|
||||
repo.publish(mk_release("rel_00", "9.9.9"), @arts_dup, the_channel()) catch (e) {
|
||||
dup_failed = true;
|
||||
dup_integrity = (e == error.Integrity);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user