@@ -75,36 +75,6 @@ func TestGetContent(t *testing.T) {
7575 assert .Contains (t , content , "Version" )
7676}
7777
78- func TestGetFrameworkContent (t * testing.T ) {
79- // Test successful case - reading a known framework file
80- content , err := GetFrameworkContent ("support/constant.go" )
81- assert .Nil (t , err )
82- assert .NotEmpty (t , content )
83- assert .Contains (t , content , "Version" )
84-
85- // Test successful case - reading another framework file
86- content , err = GetFrameworkContent ("support/file/file.go" )
87- assert .Nil (t , err )
88- assert .NotEmpty (t , content )
89- assert .Contains (t , content , "package file" )
90-
91- // Test case with non-existent file
92- content , err = GetFrameworkContent ("non/existent/file.go" )
93- assert .NotNil (t , err )
94- assert .Empty (t , content )
95-
96- // Test case with empty file path
97- content , err = GetFrameworkContent ("" )
98- assert .NotNil (t , err )
99- assert .Empty (t , content )
100-
101- // Test case with file path that contains expected framework content
102- content , err = GetFrameworkContent ("go.mod" )
103- assert .Nil (t , err )
104- assert .NotEmpty (t , content )
105- assert .Contains (t , content , "module github.com/goravel/framework" )
106- }
107-
10878func TestPutContent (t * testing.T ) {
10979 if ! env .IsWindows () {
11080 // directory creation failure
0 commit comments