push
github
0 of 53 new or added lines in 3 files covered. (0.0%)
2099 of 2962 relevant lines covered (70.86%)
3464.66 hits per line
1 |
package astikit
|
|
2 |
|
|
3 |
import (
|
|
4 |
"os"
|
|
5 |
"testing"
|
|
6 |
) |
|
7 |
|
|
NEW
|
func TestSystemVIpcKey(t *testing.T) {
|
× |
NEW
|
k, err := newSystemVIpcKey(1)
|
× |
NEW
|
if err != nil { |
× |
NEW
|
t.Fatalf("expected no error, got %s", err)
|
× |
NEW
|
} |
× |
NEW
|
if k == nil { |
× |
NEW
|
t.Fatal("expected not nil, got nil")
|
× |
NEW
|
} |
× |
NEW
|
_, err = os.Stat(k.path) |
× |
NEW
|
if err != nil { |
× |
NEW
|
t.Fatalf("expected no error, got %s", err)
|
× |
NEW
|
} |
× |
NEW
|
if k.close() != nil { |
× |
NEW
|
t.Fatalf("expected no error, got %s", err)
|
× |
NEW
|
} |
× |
NEW
|
_, err = os.Stat(k.path) |
× |
NEW
|
if err == nil { |
× |
NEW
|
t.Fatal("expected error, got none")
|
× |
NEW
|
} |
× |
27 |
} |