<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dombah</author_name>
  <author_url>https://blog.hatena.ne.jp/dombah/</author_url>
  <blog_title>Uzabase for Engineers</blog_title>
  <blog_url>https://tech.uzabase.com/</blog_url>
  <categories>
    <anon>Blog</anon>
    <anon>Rust</anon>
    <anon>言語</anon>
    <anon>テストエンジニアリング</anon>
  </categories>
  <description>こんにちは、SaaS Product Team の Ryo33 です。 この記事では Rust でモックオブジェクトを作ることを通してRefCellやMutex、Rc、Arcの使い方やSendやSyncについて学びます。 この記事を読むことで Rust でモックオブジェクトを自作できるようになります。 サンプルプログラム テストを書いてみる モックオブジェクトをつくる RefCell 非同期 複数の所有権 最後に 参考文献 サンプルプログラム まず書いていきたいコードとして以下のようなcreate_user_with_nameというユースケースを考えます。 もし、名前が空文字でなければUser…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.uzabase.com%2Fentry%2F2020%2F12%2F25%2F144712&quot; title=&quot;Rustでモックオブジェクトを自作してみる - Uzabase for Engineers&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn.user.blog.st-hatena.com/default_entry_og_image/103742793/1613563140226503</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-12-25 14:47:12</published>
  <title>Rustでモックオブジェクトを自作してみる</title>
  <type>rich</type>
  <url>https://tech.uzabase.com/entry/2020/12/25/144712</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
