Skip to content

Commit

Permalink
Rebase to main
Browse files Browse the repository at this point in the history
Signed-off-by: Yogesh Deshpande <[email protected]>
  • Loading branch information
yogeshbdeshpande committed Jan 28, 2025
1 parent 4cdbc95 commit 8fe444c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
12 changes: 6 additions & 6 deletions comid/tdx-profile/example_pce_refval_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ func Example_decode_PCE_JSON() {
if err != nil {
panic(err) // will not error, as the hard-coded string above is valid
}
profile, found := corim.GetProfile(profileID)
manifest, found := corim.GetProfileManifest(profileID)
if !found {
fmt.Printf("CoRIM Profile NOT FOUND")
return
}

m := profile.GetComid()
m := manifest.GetComid()
if err := m.FromJSON([]byte(TDXPCERefValTemplate)); err != nil {
panic(err)
}
Expand Down Expand Up @@ -201,13 +201,13 @@ func Example_decode_PCE_CBOR() {
if err != nil {
panic(err) // will not error, as the hard-coded string above is valid
}
profile, found := corim.GetProfile(profileID)
manifest, found := corim.GetProfileManifest(profileID)
if !found {
fmt.Printf("CoRIM Profile NOT FOUND")
return
}

m := profile.GetComid()
m := manifest.GetComid()

if err := m.FromCBOR(testComid3); err != nil {
panic(err)
Expand Down Expand Up @@ -253,13 +253,13 @@ func Example_encode_tdx_pce_refval_with_profile() {
if err != nil {
panic(err) // will not error, as the hard-coded string above is valid
}
profile, found := corim.GetProfile(profileID)
manifest, found := corim.GetProfileManifest(profileID)
if !found {
fmt.Printf("CoRIM Profile NOT FOUND")
return
}

m := profile.GetComid()
m := manifest.GetComid()
if m == nil {
panic(err)
}
Expand Down
8 changes: 4 additions & 4 deletions comid/tdx-profile/example_qe_refval_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ func Example_decode_QE_JSON() {
if err != nil {
panic(err) // will not error, as the hard-coded string above is valid
}
profile, found := corim.GetProfile(profileID)
manifest, found := corim.GetProfileManifest(profileID)
if !found {
fmt.Printf("CoRIM Profile NOT FOUND")
return
}

m := profile.GetComid()
m := manifest.GetComid()
if err := m.FromJSON([]byte(TDXQERefValTemplate)); err != nil {
panic(err)
}
Expand Down Expand Up @@ -265,13 +265,13 @@ func Example_decode_QE_CBOR() {
if err != nil {
panic(err) // will not error, as the hard-coded string above is valid
}
profile, found := corim.GetProfile(profileID)
manifest, found := corim.GetProfileManifest(profileID)
if !found {
fmt.Printf("CoRIM Profile NOT FOUND")
return
}

m := profile.GetComid()
m := manifest.GetComid()

if err := m.FromCBOR(testComid2); err != nil {
panic(err)
Expand Down
12 changes: 6 additions & 6 deletions comid/tdx-profile/example_seam_refval_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ func Example_decode_JSON() {
if err != nil {
panic(err) // will not error, as the hard-coded string above is valid
}
profile, found := corim.GetProfile(profileID)
manifest, found := corim.GetProfileManifest(profileID)
if !found {
fmt.Printf("CoRIM Profile NOT FOUND")
return
}

m := profile.GetComid()
m := manifest.GetComid()
if err := m.FromJSON([]byte(TDXSeamRefValJSONTemplate)); err != nil {
panic(err)
}
Expand Down Expand Up @@ -114,13 +114,13 @@ func Example_encode_tdx_seam_refval_with_profile() {
if err != nil {
panic(err) // will not error, as the hard-coded string above is valid
}
profile, found := corim.GetProfile(profileID)
manifest, found := corim.GetProfileManifest(profileID)
if !found {
fmt.Printf("CoRIM Profile NOT FOUND")
return
}

m := profile.GetComid()
m := manifest.GetComid()
if m == nil {
panic(err)
}
Expand Down Expand Up @@ -376,13 +376,13 @@ func Example_decode_CBOR() {
if err != nil {
panic(err) // will not error, as the hard-coded string above is valid
}
profile, found := corim.GetProfile(profileID)
manifest, found := corim.GetProfileManifest(profileID)
if !found {
fmt.Printf("CoRIM Profile NOT FOUND")
return
}

m := profile.GetComid()
m := manifest.GetComid()

if err := m.FromCBOR(testComid1); err != nil {
panic(err)
Expand Down

0 comments on commit 8fe444c

Please sign in to comment.