Sha256: e414ecd1b6124f06c6bb6b32550acf7775b091b9f52d8687bf23d0a658aaf9e2

Contents?: true

Size: 823 Bytes

Versions: 11

Compression:

Stored size: 823 Bytes

Contents

'#--
'# Copyright (c) 2006-2007 Luis Lavena, Multimedia systems
'#
'# This source code is released under the MIT License.
'# See MIT-LICENSE file for details
'#++

#include once "testly.bi"
#include once "test_helpers.bi"
#include once "file.bi"

'# Global Helpers
function content_of_file(byref filename as string) as string
    dim result as string
    dim handle as integer
    dim buffer as string
    
    result = ""
    buffer = ""
    
    if (fileexists(filename) = true) then
        handle = freefile
        open filename for input as #handle
        do while not (eof(handle))
            input #handle, buffer
            result += buffer
            buffer = ""
        loop
        close #handle
    else
        result = ""
    end if
    
    return result
end function

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
thin_service-0.0.7 tests/test_helpers.bas
thin_service-0.0.6 tests/test_helpers.bas
thin_service-0.0.5 tests/test_helpers.bas
thin_service-0.0.4 tests/test_helpers.bas
thin_service-0.0.3 tests/test_helpers.bas
thin_service-0.0.2 tests/test_helpers.bas
thin_service-0.0.1 tests/test_helpers.bas
mongrel_service-0.4.0 tests/test_helpers.bas
mongrel_service-0.4.beta3 tests/test_helpers.bas
mongrel_service-0.4.beta2 tests/test_helpers.bas
mongrel_service-0.4.beta1 tests/test_helpers.bas