on main help sign in
test(diffview): update golden files to remove final line breaks
6d22a5bAndrey Nering
internal/exp/diffview/testdata/TestDiffView/Split/CustomContextLines/DarkMode.golden+1−1
@@ -13,4 +13,4 @@
13 11  func getContent() string {  12  func getContent() string { 
13 11  func getContent() string {  12  func getContent() string { 
14 12 -  return "Hello, world!"  13 +  content := strings.ToUpper("Hello, World!") 
14 12 -  return "Hello, world!"  13 +  content := strings.ToUpper("Hello, World!") 
15      14 +  return content 
15      14 +  return content 
16− 13  }  15  } 
16+ 13  }  15  } 
internal/exp/diffview/testdata/TestDiffView/Split/CustomContextLines/LightMode.golden+1−1
@@ -13,4 +13,4 @@
13 11  func getContent() string {  12  func getContent() string { 
13 11  func getContent() string {  12  func getContent() string { 
14 12 -  return "Hello, world!"  13 +  content := strings.ToUpper("Hello, World!") 
14 12 -  return "Hello, world!"  13 +  content := strings.ToUpper("Hello, World!") 
15      14 +  return content 
15      14 +  return content 
16− 13  }  15  } 
16+ 13  }  15  } 
internal/exp/diffview/testdata/TestDiffView/Split/Default/DarkMode.golden+1−1
@@ -4,4 +4,4 @@
4  7  func main() {   7  func main() { 
4  7  func main() {   7  func main() { 
5  8 -  fmt.Println("Hello, world!")   8 +  content := "Hello, world!" 
5  8 -  fmt.Println("Hello, world!")   8 +  content := "Hello, world!" 
6       9 +  fmt.Println(content) 
6       9 +  fmt.Println(content) 
7−  9  }  10  } 
7+  9  }  10  } 
internal/exp/diffview/testdata/TestDiffView/Split/Default/LightMode.golden+1−1
@@ -4,4 +4,4 @@
4  7  func main() {   7  func main() { 
4  7  func main() {   7  func main() { 
5  8 -  fmt.Println("Hello, world!")   8 +  content := "Hello, world!" 
5  8 -  fmt.Println("Hello, world!")   8 +  content := "Hello, world!" 
6       9 +  fmt.Println(content) 
6       9 +  fmt.Println(content) 
7−  9  }  10  } 
7+  9  }  10  } 
internal/exp/diffview/testdata/TestDiffView/Split/LargeWidth/DarkMode.golden+1−1
@@ -12,4 +12,4 @@
12 11  func getContent() string {  12  func getContent() string { 
12 11  func getContent() string {  12  func getContent() string { 
13 12 -  return "Hello, world!"  13 +  content := strings.ToUpper("Hello, World!") 
13 12 -  return "Hello, world!"  13 +  content := strings.ToUpper("Hello, World!") 
14      14 +  return content 
14      14 +  return content 
15− 13  }  15  } 
15+ 13  }  15  } 
internal/exp/diffview/testdata/TestDiffView/Split/LargeWidth/LightMode.golden+1−1
@@ -12,4 +12,4 @@
12 11  func getContent() string {  12  func getContent() string { 
12 11  func getContent() string {  12  func getContent() string { 
13 12 -  return "Hello, world!"  13 +  content := strings.ToUpper("Hello, World!") 
13 12 -  return "Hello, world!"  13 +  content := strings.ToUpper("Hello, World!") 
14      14 +  return content 
14      14 +  return content 
15− 13  }  15  } 
15+ 13  }  15  } 
internal/exp/diffview/testdata/TestDiffView/Split/MultipleHunks/DarkMode.golden+1−1
@@ -12,4 +12,4 @@
12 11  func getContent() string {  12  func getContent() string { 
12 11  func getContent() string {  12  func getContent() string { 
13 12 -  return "Hello, world!"  13 +  content := strings.ToUpper("Hello, World!") 
13 12 -  return "Hello, world!"  13 +  content := strings.ToUpper("Hello, World!") 
14      14 +  return content 
14      14 +  return content 
15− 13  }  15  } 
15+ 13  }  15  } 
internal/exp/diffview/testdata/TestDiffView/Split/MultipleHunks/LightMode.golden+1−1
@@ -12,4 +12,4 @@
12 11  func getContent() string {  12  func getContent() string { 
12 11  func getContent() string {  12  func getContent() string { 
13 12 -  return "Hello, world!"  13 +  content := strings.ToUpper("Hello, World!") 
13 12 -  return "Hello, world!"  13 +  content := strings.ToUpper("Hello, World!") 
14      14 +  return content 
14      14 +  return content 
15− 13  }  15  } 
15+ 13  }  15  } 
internal/exp/diffview/testdata/TestDiffView/Split/Narrow/DarkMode.golden+1−1
@@ -1,4 +1,4 @@
1 …  @@ -1,3 +1,3 @@   …   
1 …  @@ -1,3 +1,3 @@   …   
2 1 - a  1 + d 
2 1 - a  1 + d 
3 2 - b  2 + e 
3 2 - b  2 + e 
4− 3 - c  3 + f 
4+ 3 - c  3 + f 
internal/exp/diffview/testdata/TestDiffView/Split/Narrow/LightMode.golden+1−1
@@ -1,4 +1,4 @@
1 …  @@ -1,3 +1,3 @@   …   
1 …  @@ -1,3 +1,3 @@   …   
2 1 - a  1 + d 
2 1 - a  1 + d 
3 2 - b  2 + e 
3 2 - b  2 + e 
4− 3 - c  3 + f 
4+ 3 - c  3 + f 
internal/exp/diffview/testdata/TestDiffView/Split/NoLineNumbers/DarkMode.golden+1−1
@@ -4,4 +4,4 @@
4 func main() {  func main() { 
4 func main() {  func main() { 
5-  fmt.Println("Hello, world!") +  content := "Hello, world!" 
5-  fmt.Println("Hello, world!") +  content := "Hello, world!" 
6  +  fmt.Println(content) 
6  +  fmt.Println(content) 
7− }  } 
7+ }  } 
internal/exp/diffview/testdata/TestDiffView/Split/NoLineNumbers/LightMode.golden+1−1
@@ -4,4 +4,4 @@
4 func main() {  func main() { 
4 func main() {  func main() { 
5-  fmt.Println("Hello, world!") +  content := "Hello, world!" 
5-  fmt.Println("Hello, world!") +  content := "Hello, world!" 
6  +  fmt.Println(content) 
6  +  fmt.Println(content) 
7− }  } 
7+ }  } 
internal/exp/diffview/testdata/TestDiffView/Split/SmallWidth/DarkMode.golden+1−1
@@ -12,4 +12,4 @@
12 11  func getConte… 12  func getConte…
12 11  func getConte… 12  func getConte…
13 12 -  return "H… 13 +  content :…
13 12 -  return "H… 13 +  content :…
14      14 +  return co…
14      14 +  return co…
15− 13  }  15  } 
15+ 13  }  15  } 
internal/exp/diffview/testdata/TestDiffView/Split/SmallWidth/LightMode.golden+1−1
@@ -12,4 +12,4 @@
12 11  func getConte… 12  func getConte…
12 11  func getConte… 12  func getConte…
13 12 -  return "H… 13 +  content :…
13 12 -  return "H… 13 +  content :…
14      14 +  return co…
14      14 +  return co…
15− 13  }  15  } 
15+ 13  }  15  } 
internal/exp/diffview/testdata/TestDiffView/Unified/CustomContextLines/DarkMode.golden+1−1
@@ -14,4 +14,4 @@
14 12    -  return "Hello, world!" 
14 12    -  return "Hello, world!" 
15    13 +  content := strings.ToUpper("Hello, World!") 
15    13 +  content := strings.ToUpper("Hello, World!") 
16    14 +  return content 
16    14 +  return content 
17− 13  15  } 
17+ 13  15  } 
internal/exp/diffview/testdata/TestDiffView/Unified/CustomContextLines/LightMode.golden+1−1
@@ -14,4 +14,4 @@
14 12    -  return "Hello, world!" 
14 12    -  return "Hello, world!" 
15    13 +  content := strings.ToUpper("Hello, World!") 
15    13 +  content := strings.ToUpper("Hello, World!") 
16    14 +  return content 
16    14 +  return content 
17− 13  15  } 
17+ 13  15  } 
internal/exp/diffview/testdata/TestDiffView/Unified/Default/DarkMode.golden+1−1
@@ -5,4 +5,4 @@
5  8    -  fmt.Println("Hello, world!") 
5  8    -  fmt.Println("Hello, world!") 
6     8 +  content := "Hello, world!" 
6     8 +  content := "Hello, world!" 
7     9 +  fmt.Println(content) 
7     9 +  fmt.Println(content) 
8−  9  10  } 
8+  9  10  } 
internal/exp/diffview/testdata/TestDiffView/Unified/Default/LightMode.golden+1−1
@@ -5,4 +5,4 @@
5  8    -  fmt.Println("Hello, world!") 
5  8    -  fmt.Println("Hello, world!") 
6     8 +  content := "Hello, world!" 
6     8 +  content := "Hello, world!" 
7     9 +  fmt.Println(content) 
7     9 +  fmt.Println(content) 
8−  9  10  } 
8+  9  10  } 
internal/exp/diffview/testdata/TestDiffView/Unified/LargeWidth/DarkMode.golden+1−1
@@ -13,4 +13,4 @@
13 12    -  return "Hello, world!" 
13 12    -  return "Hello, world!" 
14    13 +  content := strings.ToUpper("Hello, World!") 
14    13 +  content := strings.ToUpper("Hello, World!") 
15    14 +  return content 
15    14 +  return content 
16− 13  15  } 
16+ 13  15  } 
internal/exp/diffview/testdata/TestDiffView/Unified/LargeWidth/LightMode.golden+1−1
@@ -13,4 +13,4 @@
13 12    -  return "Hello, world!" 
13 12    -  return "Hello, world!" 
14    13 +  content := strings.ToUpper("Hello, World!") 
14    13 +  content := strings.ToUpper("Hello, World!") 
15    14 +  return content 
15    14 +  return content 
16− 13  15  } 
16+ 13  15  } 
internal/exp/diffview/testdata/TestDiffView/Unified/MultipleHunks/DarkMode.golden+1−1
@@ -13,4 +13,4 @@
13 12    -  return "Hello, world!" 
13 12    -  return "Hello, world!" 
14    13 +  content := strings.ToUpper("Hello, World!") 
14    13 +  content := strings.ToUpper("Hello, World!") 
15    14 +  return content 
15    14 +  return content 
16− 13  15  } 
16+ 13  15  } 
internal/exp/diffview/testdata/TestDiffView/Unified/MultipleHunks/LightMode.golden+1−1
@@ -13,4 +13,4 @@
13 12    -  return "Hello, world!" 
13 12    -  return "Hello, world!" 
14    13 +  content := strings.ToUpper("Hello, World!") 
14    13 +  content := strings.ToUpper("Hello, World!") 
15    14 +  return content 
15    14 +  return content 
16− 13  15  } 
16+ 13  15  } 
internal/exp/diffview/testdata/TestDiffView/Unified/Narrow/DarkMode.golden+1−1
@@ -4,4 +4,4 @@
4 3    - c 
4 3    - c 
5    1 + d 
5    1 + d 
6    2 + e 
6    2 + e 
7−    3 + f 
7+    3 + f 
internal/exp/diffview/testdata/TestDiffView/Unified/Narrow/LightMode.golden+1−1
@@ -4,4 +4,4 @@
4 3    - c 
4 3    - c 
5    1 + d 
5    1 + d 
6    2 + e 
6    2 + e 
7−    3 + f 
7+    3 + f 
internal/exp/diffview/testdata/TestDiffView/Unified/NoLineNumbers/DarkMode.golden+1−1
@@ -5,4 +5,4 @@
5-  fmt.Println("Hello, world!") 
5-  fmt.Println("Hello, world!") 
6+  content := "Hello, world!" 
6+  content := "Hello, world!" 
7+  fmt.Println(content) 
7+  fmt.Println(content) 
8− } 
8+ } 
internal/exp/diffview/testdata/TestDiffView/Unified/NoLineNumbers/LightMode.golden+1−1
@@ -5,4 +5,4 @@
5-  fmt.Println("Hello, world!") 
5-  fmt.Println("Hello, world!") 
6+  content := "Hello, world!" 
6+  content := "Hello, world!" 
7+  fmt.Println(content) 
7+  fmt.Println(content) 
8− } 
8+ } 
internal/exp/diffview/testdata/TestDiffView/Unified/SmallWidth/DarkMode.golden+1−1
@@ -13,4 +13,4 @@
13 12    -  return "Hello, world!" 
13 12    -  return "Hello, world!" 
14    13 +  content := strings.ToUppe…
14    13 +  content := strings.ToUppe…
15    14 +  return content 
15    14 +  return content 
16− 13  15  } 
16+ 13  15  } 
internal/exp/diffview/testdata/TestDiffView/Unified/SmallWidth/LightMode.golden+1−1
@@ -13,4 +13,4 @@
13 12    -  return "Hello, world!" 
13 12    -  return "Hello, world!" 
14    13 +  content := strings.ToUppe…
14    13 +  content := strings.ToUppe…
15    14 +  return content 
15    14 +  return content 
16− 13  15  } 
16+ 13  15  }