(t *testing.T)
| 104 | } |
| 105 | |
| 106 | func TestIsPinnedBinaryExtensionUnpinned(t *testing.T) { |
| 107 | tempDir := t.TempDir() |
| 108 | extName := "gh-bin-ext" |
| 109 | extDir := filepath.Join(tempDir, "extensions", extName) |
| 110 | extPath := filepath.Join(extDir, extName) |
| 111 | bm := binManifest{ |
| 112 | Name: "gh-bin-ext", |
| 113 | } |
| 114 | assert.NoError(t, stubBinaryExtension(extDir, bm)) |
| 115 | e := &Extension{ |
| 116 | kind: BinaryKind, |
| 117 | path: extPath, |
| 118 | } |
| 119 | |
| 120 | assert.False(t, e.IsPinned()) |
| 121 | } |
| 122 | |
| 123 | func TestIsPinnedBinaryExtensionPinned(t *testing.T) { |
| 124 | tempDir := t.TempDir() |
nothing calls this directly
no test coverage detected