Skip to content

Commit

Permalink
Added blog post on testing. (#720)
Browse files Browse the repository at this point in the history
* Added blog post on testing.

* Addressed Robert and Shane's feedback.

* Addressed Robert's feedback.
  • Loading branch information
mwhittaker authored Feb 16, 2024
1 parent 845395d commit 5018aca
Show file tree
Hide file tree
Showing 5 changed files with 638 additions and 4 deletions.
3 changes: 3 additions & 0 deletions dev/docgen/docgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ var files = []file{
staticFile("assets/images/faster_grpc.png"),
staticFile("assets/images/benchmark.png"),

{dst: "blog/testing.html", markdown: "blog/testing.md", template: "blog_entry.html", title: "Service Weaver and Kubernetes", license: true},
staticFile("blog/testing/bank_failure.svg"),

staticFile("favicon.ico"),
staticFile("assets/css/blog.css"),
staticFile("assets/css/common.css"),
Expand Down
7 changes: 4 additions & 3 deletions sim/internal/bank/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ type Store interface {
// Get gets the value of the provided key.
Get(ctx context.Context, key string) (int, error)

// Add atomically adds the provided delta to the provided key. Note that
// delta can be positive or negative. For example, Add(ctx, "foo", 10) adds
// 10 to "foo", while Add(ctx, "foo", -10) subtracts 10 from "foo".
// Add atomically adds the provided delta to the provided key and returns
// the resulting sum. Note that delta can be positive or negative. For
// example, Add(ctx, "foo", 10) adds 10 to "foo", while Add(ctx, "foo",
// -10) subtracts 10 from "foo".
Add(ctx context.Context, key string, delta int) (int, error)
}

Expand Down
10 changes: 9 additions & 1 deletion website/blog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@
-->

<!-- TODO: Avoid boilerplate. -->
<div class="blog-listing">
<div>
<a class="blog-title" href="testing.html">Lower Test Toil With Better Local Testing</a>
<span class="blog-date">February 16, 2024</span>
</div>
<div class="blog-author">Michael Whittaker</div>
<div>How to catch more bugs, faster.</div>
</div>

<div class="blog-listing">
<div>
<a class="blog-title" href="improve_cloud_efficiency.html">Improve Cloud Efficiency with Service Weaver</a>
Expand All @@ -24,7 +33,6 @@
<div>Why organizations can look to Service Weaver to improve cloud application efficiency.</div>
</div>


<div class="blog-listing">
<div>
<a class="blog-title" href="kubernetes.html">Service Weaver and Kubernetes</a>
Expand Down
Loading

0 comments on commit 5018aca

Please sign in to comment.