File: mount_test.go

package info (click to toggle)
goss 0.4.9-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,700 kB
  • sloc: sh: 984; makefile: 139
file content (21 lines) | stat: -rw-r--r-- 388 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package system

import (
	"testing"

	"gotest.tools/v3/assert"
)

func TestSplitMountInfo(t *testing.T) {
	in := "rw,context=\"system_u:object_r:container_file_t:s0:c174,c741\",size=65536k,mode=755"
	want := []string{
		"rw",
		"context=\"system_u:object_r:container_file_t:s0:c174,c741\"",
		"size=65536k",
		"mode=755",
	}

	got := splitMountInfo(in)

	assert.DeepEqual(t, got, want)
}