From 1ee3369f02ae0ff8c4b1cc91a1fdb2b6128580e7 Mon Sep 17 00:00:00 2001
From: Eli Bendersky
Date: Mon, 5 Jun 2023 13:42:02 -0700
Subject: [PATCH] Add link from structs-->testing-and-benchmarking
---
examples/structs/structs.go | 3 ++-
examples/structs/structs.hash | 4 ++--
public/structs | 5 +++--
3 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/examples/structs/structs.go b/examples/structs/structs.go
index 9f38700..d56c0aa 100644
--- a/examples/structs/structs.go
+++ b/examples/structs/structs.go
@@ -53,7 +53,8 @@ func main() {
// If a struct type is only used for a single value, we don't
// have to give it a name. The value can have an anonymous
- // struct type.
+ // struct type. This technique is commonly used for
+ // [table-driven tests](testing-and-benchmarking).
dog := struct {
name string
isGood bool
diff --git a/examples/structs/structs.hash b/examples/structs/structs.hash
index 9da9321..3721238 100644
--- a/examples/structs/structs.hash
+++ b/examples/structs/structs.hash
@@ -1,2 +1,2 @@
-2676ffa99a3a14bc99332fc498e5d658c7988612
-EzGgwrfM-yD
+80344041b9268370bb6c73190afb1269e26f52fe
+ex1J3oieEeo
diff --git a/public/structs b/public/structs
index 9c34077..40e92df 100644
--- a/public/structs
+++ b/public/structs
@@ -43,7 +43,7 @@ records.
- 
+ 
package main
|
@@ -229,7 +229,8 @@ pointers are automatically dereferenced.
If a struct type is only used for a single value, we don’t
have to give it a name. The value can have an anonymous
-struct type.
+struct type. This technique is commonly used for
+table-driven tests.
|
|