MCPcopy Index your code
hub / github.com/coder/coder / Test_removeMainlineBlurb

Function Test_removeMainlineBlurb

scripts/release/main_internal_test.go:14–125  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

12)
13
14func Test_removeMainlineBlurb(t *testing.T) {
15 t.Parallel()
16
17 tests := []struct {
18 name string
19 body string
20 want string
21 }{
22 {
23 name: "NoMainlineBlurb",
24 body: `## Changelog
25
26### Chores
27
28- Add support for additional Azure Instance Identity RSA Certificates (#13028) (@kylecarbs)
29
30Compare: [` + "`" + `v2.10.1...v2.10.2` + "`" + `](https://github.com/coder/coder/compare/v2.10.1...v2.10.2)
31
32## Container image
33
34- ` + "`" + `docker pull ghcr.io/coder/coder:v2.10.2` + "`" + `
35
36## Install/upgrade
37
38Refer to our docs to [install](https://coder.com/docs/install) or [upgrade](https://coder.com/docs/admin/upgrade) Coder, or use a release asset below.
39`,
40 want: `## Changelog
41
42### Chores
43
44- Add support for additional Azure Instance Identity RSA Certificates (#13028) (@kylecarbs)
45
46Compare: [` + "`" + `v2.10.1...v2.10.2` + "`" + `](https://github.com/coder/coder/compare/v2.10.1...v2.10.2)
47
48## Container image
49
50- ` + "`" + `docker pull ghcr.io/coder/coder:v2.10.2` + "`" + `
51
52## Install/upgrade
53
54Refer to our docs to [install](https://coder.com/docs/install) or [upgrade](https://coder.com/docs/admin/upgrade) Coder, or use a release asset below.
55`,
56 },
57 {
58 name: "WithMainlineBlurb",
59 body: `## Changelog
60
61> [!NOTE]
62> This is a mainline Coder release. We advise enterprise customers without a staging environment to install our [latest stable release](https://github.com/coder/coder/releases/latest) while we refine this version. Learn more about our [Release Schedule](https://coder.com/docs/install/releases).
63
64### Chores
65
66- Add support for additional Azure Instance Identity RSA Certificates (#13028) (@kylecarbs)
67
68Compare: [` + "`" + `v2.10.1...v2.10.2` + "`" + `](https://github.com/coder/coder/compare/v2.10.1...v2.10.2)
69
70## Container image
71

Callers

nothing calls this directly

Calls 3

removeMainlineBlurbFunction · 0.85
RunMethod · 0.65
FailMethod · 0.45

Tested by

no test coverage detected