izxl007
izxl007
需要测试的代码 ``` void nfs4_op_getattr_Free(nfs_resop4 *res) { GETATTR4res *resp = &res->nfs_resop4_u.opgetattr; if (resp->status == NFS4_OK) nfs4_Fattr_Free(&resp->GETATTR4res_u.resok4.obj_attributes); } ``` 测试代码 ``` TEST_F(Nfs4OpGetattrFreeTest, StatusIsNFS4_OK) { res.nfs_resop4_u.opgetattr.status = NFS4_OK; MOCKER(nfs4_Fattr_Free) .expect(once()) .with(any()); nfs4_op_getattr_Free(&res); GlobalMockObject::verify();...
Hello everyone, I am working with the RGW-related code in NFS-Ganesha, specifically focusing on the rgw_fh_hk structure (defined in include/rados/rgw_file.h), which is widely used in the src/FSAL/FSAL_RGW directory. Currently, due...