google / google/go-tpm

Add a Compare function

Open
#309 0 comments 0 reactions 0 assignees View on GitHub
tpmdirect
Dominant language
Go
Stars
673
Forks
188
PR merge metrics
No merged PRs in 30d

Description

Since a lot of the tpmdirect structs have private members, we should create a convenient way to compare two values without hassling with adding enough types into `cmpopts.IgnoreUnexportedFields`.

Contributor guide

Open the contributing guide

Research direction

Start by locating the tpmdirect structs and reviewing how cmpopts.IgnoreUnexportedFields is currently used when comparing them. Define the intended Compare API and its behavior for these private members, then add coverage demonstrating comparisons between equivalent and differing values.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.